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
5454this:
5555
5656``` {rust}
57- let mut x = 5u ; // mut x: uint
57+ let mut x = 5u32 ; // mut x: u32
5858let mut done = false; // mut done: bool
5959
6060while !done {
@@ -91,7 +91,7 @@ can do with safety and code generation, so you should always prefer
9191Let's take a look at that ` while ` loop we had earlier:
9292
9393``` {rust}
94- let mut x = 5u ;
94+ let mut x = 5u32 ;
9595let mut done = false;
9696
9797while !done {
@@ -108,7 +108,7 @@ modifying iteration: `break` and `continue`.
108108In 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
113113loop {
114114 x += x - 3;
You can’t perform that action at this time.
0 commit comments