Skip to content

Commit

Permalink
Merge pull request #14 from LateNightIceCream/patch-1
Browse files Browse the repository at this point in the history
Update Home.md: make wind mutable
  • Loading branch information
MoAlyousef authored Oct 29, 2023
2 parents cb2e5bf + 99ef060 commit 26533d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ maps to:
use fltk::{prelude::*, window};

fn main() {
let wind = window::Window::new(100, 100, 400, 300, "My Window");
let mut wind = window::Window::new(100, 100, 400, 300, "My Window");
wind.end();
wind.show();
}
Expand Down Expand Up @@ -70,7 +70,7 @@ To make our first Rust code sample work, we need to import the necessary fltk mo
use fltk::{prelude::*, window::Window};

fn main() {
let wind = Window::new(100, 100, 400, 300, "My Window");
let mut wind = Window::new(100, 100, 400, 300, "My Window");
wind.end();
wind.show();
}
Expand All @@ -82,7 +82,7 @@ use fltk::{app, prelude::*, window::Window};

fn main() {
let a = app::App::default();
let wind = Window::new(100, 100, 400, 300, "My Window");
let mut wind = Window::new(100, 100, 400, 300, "My Window");
wind.end();
wind.show();
a.run().unwrap();
Expand All @@ -95,4 +95,4 @@ The book is generated using [mdbook](https://github.com/rust-lang/mdBook) on the

As such, you would need to `cargo install mdbook`. More instructions can be found in fltk-book's README and in mdbook's [user guide](https://rust-lang.github.io/mdBook/).

You can also contribute to the Chinese translation [here](https://github.com/Flatigers/fltk-book-zh)
You can also contribute to the Chinese translation [here](https://github.com/Flatigers/fltk-book-zh)

0 comments on commit 26533d3

Please sign in to comment.