Skip to content

Commit c989bd4

Browse files
committed
replace deprecated uint references with u32
Replaced uint references with u32 to prevent compiler warnings.
1 parent 2127e0d commit c989bd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/looping.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The other kind of looping construct in Rust is the `while` loop. It looks like
5454
this:
5555

5656
```{rust}
57-
let mut x = 5u; // mut x: uint
57+
let mut x = 5u32; // mut x: u32
5858
let mut done = false; // mut done: bool
5959
6060
while !done {
@@ -91,7 +91,7 @@ can do with safety and code generation, so you should always prefer
9191
Let's take a look at that `while` loop we had earlier:
9292

9393
```{rust}
94-
let mut x = 5u;
94+
let mut x = 5u32;
9595
let mut done = false;
9696
9797
while !done {
@@ -108,7 +108,7 @@ modifying iteration: `break` and `continue`.
108108
In this case, we can write the loop in a better way with `break`:
109109

110110
```{rust}
111-
let mut x = 5u;
111+
let mut x = 5u32;
112112
113113
loop {
114114
x += x - 3;

0 commit comments

Comments
 (0)