Skip to content

Commit 2afa5eb

Browse files
authoredNov 12, 2022
Merge pull request #1638 from imaxue/master
Fix comment in "Formatted print" example code
2 parents 464bc1d + 6b75bf5 commit 2afa5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hello/print.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn main() {
6868
6969
// For Rust 1.58 and above, you can directly capture the argument from a
7070
// surrounding variable. Just like the above, this will output
71-
// " 1". 5 white spaces and a "1".
71+
// " 1". 4 white spaces and a "1".
7272
let number: f64 = 1.0;
7373
let width: usize = 5;
7474
println!("{number:>width$}");

0 commit comments

Comments
 (0)
Please sign in to comment.