Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To discuss and/or collaborate with other Rust developers, join our [Discord comm
```shell
git clone git@github.com:letsgetrusty/rust-learning-guide.git

cargo install mdbook
cargo install mdbook --version 0.4.36

cd rust-learning-guide && mdbook serve --open
```
Expand Down
8 changes: 8 additions & 0 deletions src/beginner/control-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ pub fn bigger(a: i32, b: i32) -> i32 {
// - additional variables
}

fn main() {
print!("{} is bigger than {}", bigger(10, 8), 8);
}

// Don't mind this for now :)
#[cfg(test)]
mod tests {
Expand Down Expand Up @@ -45,6 +49,10 @@ pub fn bigger(a: i32, b: i32) -> i32 {
}
}

fn main() {
print!("{} is bigger than {}", bigger(10, 8), 8);
}

// Don't mind this for now :)
#[cfg(test)]
mod tests {
Expand Down