mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Add semi colon on the docs.
The run statement returns `()` so it is easier to copy/paste it if it has the semicolon
This commit is contained in:
parent
4383566db9
commit
32f23f4c3e
3 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@ sixtyfps::sixtyfps!{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fn main() {
|
fn main() {
|
||||||
HelloWorld::new().run()
|
HelloWorld::new().run();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ sixtyfps::sixtyfps!{
|
||||||
}
|
}
|
||||||
fn main() {
|
fn main() {
|
||||||
# return; // Don't run a window in an example
|
# return; // Don't run a window in an example
|
||||||
HelloWorld::new().run()
|
HelloWorld::new().run();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ Then in your main file
|
||||||
```ignore
|
```ignore
|
||||||
sixtyfps::include_modules!();
|
sixtyfps::include_modules!();
|
||||||
fn main() {
|
fn main() {
|
||||||
HelloWorld::new().run()
|
HelloWorld::new().run();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ Then in your main file
|
||||||
```ignore
|
```ignore
|
||||||
sixtyfps::include_modules!();
|
sixtyfps::include_modules!();
|
||||||
fn main() {
|
fn main() {
|
||||||
HelloWorld::new().run()
|
HelloWorld::new().run();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue