Fix links from the tutorial to the Rust crates

The crate has been renamed. There's a redirect in place, so the release docs should be ok,
but in the future we should use the right name.
This commit is contained in:
Simon Hausmann 2022-02-10 13:25:46 +01:00
parent eb320b0a99
commit a9c76d44a2
5 changed files with 10 additions and 10 deletions

View file

@ -34,7 +34,7 @@ Insert this code before the `main_window.run()` call:
{{#include main_game_logic_in_rust.rs:game_logic}}
```
Notice that we take a [Weak](https://slint-ui.com/docs/rust/sixtyfps/struct.weak) pointer of our `main_window`. This is very
Notice that we take a [Weak](https://slint-ui.com/docs/rust/slint/struct.weak) pointer of our `main_window`. This is very
important because capturing a copy of the `main_window` itself within the callback handler would result in a circular ownership.
The `MainWindow` owns the callback handler, which itself owns a reference to the `MainWindow`, which must be weak
instead of strong to avoid a memory leak.