Polish rust tutorial

This commit is contained in:
Tobias Hunger 2022-02-02 17:02:31 +01:00
parent 7bf6c4826f
commit a0d89c0346
No known key found for this signature in database
GPG key ID: 60874021D2F23F91
6 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@ and it is filled with a soothing tone of blue. Note how lengths in the `.slint`
the `px` suffix. That makes the code easier to read and the compiler can detect when your are accidentally
mixing values with different units attached to them.
We copy the following code inside of the `sixtyfps!` macro:
We copy the following code inside of the `slint!` macro:
```slint
{{#include main_memory_tile.rs:tile}}
@ -15,7 +15,7 @@ We copy the following code inside of the `sixtyfps!` macro:
Inside the <span class="hljs-built_in">Rectangle</span> we place an <span class="hljs-built_in">Image</span> element that
loads an icon with the <span class="hljs-built_in">@image-url()</span> macro.
When using the `sixtyfps!` macro, the path is relative to the folder in which the Cargo.toml is located.
When using the `slint!` macro, the path is relative to the folder in which the Cargo.toml is located.
When using .slint files, it is relative to the folder of the .slint file containing it.
This icon and others we're going to use later need to be installed first. You can download a
[Zip archive](https://sixtyfps.io/blog/memory-game-tutorial/icons.zip) that we have prepared and extract it with the