File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ The other kind of looping construct in Rust is the `while` loop. It looks like
54
54
this:
55
55
56
56
``` {rust}
57
- let mut x = 5u ; // mut x: uint
57
+ let mut x = 5u32 ; // mut x: u32
58
58
let mut done = false; // mut done: bool
59
59
60
60
while !done {
@@ -91,7 +91,7 @@ can do with safety and code generation, so you should always prefer
91
91
Let's take a look at that ` while ` loop we had earlier:
92
92
93
93
``` {rust}
94
- let mut x = 5u ;
94
+ let mut x = 5u32 ;
95
95
let mut done = false;
96
96
97
97
while !done {
@@ -108,7 +108,7 @@ modifying iteration: `break` and `continue`.
108
108
In this case, we can write the loop in a better way with ` break ` :
109
109
110
110
``` {rust}
111
- let mut x = 5u ;
111
+ let mut x = 5u32 ;
112
112
113
113
loop {
114
114
x += x - 3;
You can’t perform that action at this time.
0 commit comments