Skip to content

Commit

Permalink
Fix inconsistency between comment and code in hello/print.md (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gökmen Kaplan authored Jul 26, 2022
1 parent 732fd04 commit 15c81d8
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() {
// 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

0 comments on commit 15c81d8

Please sign in to comment.