Skip to content

Commit 15c81d8

Browse files
author
Gökmen Kaplan
authored
Fix inconsistency between comment and code in hello/print.md (#1571)
1 parent 732fd04 commit 15c81d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hello/print.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn main() {
6868
// surrounding variable. Just like the above, this will output
6969
// " 1". 5 white spaces and a "1".
7070
let number: f64 = 1.0;
71-
let width: usize = 6;
71+
let width: usize = 5;
7272
println!("{number:>width$}");
7373
}
7474
```

0 commit comments

Comments
 (0)