diff options
| author | Matt Roche <angst7@gmail.com> | 2015-01-11 13:55:23 -0500 |
|---|---|---|
| committer | Matt Roche <angst7@gmail.com> | 2015-01-11 13:55:23 -0500 |
| commit | c989bd4ab7db24699dd2f8773964e03c751d80c7 (patch) | |
| tree | aac15761bbba5de5c9f3f99085447745e3d07b65 | |
| parent | 2127e0d56d85ff48aafce90ab762650e46370b63 (diff) | |
replace deprecated uint references with u32
Replaced uint references with u32 to prevent compiler warnings.
| -rw-r--r-- | src/doc/trpl/looping.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/trpl/looping.md b/src/doc/trpl/looping.md index f54084a7fb9..c4d9c1ca74c 100644 --- a/src/doc/trpl/looping.md +++ b/src/doc/trpl/looping.md @@ -54,7 +54,7 @@ The other kind of looping construct in Rust is the `while` loop. It looks like this: ```{rust} -let mut x = 5u; // mut x: uint +let mut x = 5u32; // mut x: u32 let mut done = false; // mut done: bool while !done { @@ -91,7 +91,7 @@ can do with safety and code generation, so you should always prefer Let's take a look at that `while` loop we had earlier: ```{rust} -let mut x = 5u; +let mut x = 5u32; let mut done = false; while !done { @@ -108,7 +108,7 @@ modifying iteration: `break` and `continue`. In this case, we can write the loop in a better way with `break`: ```{rust} -let mut x = 5u; +let mut x = 5u32; loop { x += x - 3; |
