Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ fn main() {
println!("This struct `{}` won't print...", Structure(3));
// FIXME ^ Comment out this line.

// For Rust 1.58 and above, you can directly capture the argument from
// For Rust 1.58 and above, you can directly capture the argument from a
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could alternatively also become capture the argument from surrounding variables

// surrounding variable. Just like the above, this will output
// " 1". 5 white spaces and a "1".
let number: f64 = 1.0;
let width: usize = 6;
let width: usize = 5;
println!("{number:>width$}");
}
```
Expand Down