Skip to content

Commit

Permalink
Merge pull request #1638 from imaxue/master
Browse files Browse the repository at this point in the history
Fix comment in "Formatted print" example code
  • Loading branch information
marioidival authored Nov 12, 2022
2 parents 464bc1d + 6b75bf5 commit 2afa5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hello/print.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn main() {
// For Rust 1.58 and above, you can directly capture the argument from a
// surrounding variable. Just like the above, this will output
// " 1". 5 white spaces and a "1".
// " 1". 4 white spaces and a "1".
let number: f64 = 1.0;
let width: usize = 5;
println!("{number:>width$}");
Expand Down

0 comments on commit 2afa5eb

Please sign in to comment.