Skip to content

Commit 1f40cde

Browse files
committed
Rollup merge of rust-lang#25404 - dnaeon:doc-fixes, r=steveklabnik
This PR fixes a comment in the `while Loops` section of the Rust book with the correct type of a variable binding.
2 parents 571f371 + b4e1ce5 commit 1f40cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/while-loops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Rust also has a `while` loop. It looks like this:
44

55
```{rust}
6-
let mut x = 5; // mut x: u32
6+
let mut x = 5; // mut x: i32
77
let mut done = false; // mut done: bool
88
99
while !done {

0 commit comments

Comments
 (0)