about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarin Atanasov Nikolov <dnaeon@gmail.com>2015-05-14 17:38:22 +0300
committerMarin Atanasov Nikolov <dnaeon@gmail.com>2015-05-14 17:38:22 +0300
commitb4e1ce56a33196e657031fb00dafdb4d76763565 (patch)
tree09feaeee45d3c271f8e12727825def5b01f536f5
parentb1bd3a3c5180b2d671e5810cb5211b2d2b456a71 (diff)
downloadrust-b4e1ce56a33196e657031fb00dafdb4d76763565.tar.gz
rust-b4e1ce56a33196e657031fb00dafdb4d76763565.zip
trpl-docs: Specify correct type of variable binding
-rw-r--r--src/doc/trpl/while-loops.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/while-loops.md b/src/doc/trpl/while-loops.md
index e71d2033f49..a56c546b551 100644
--- a/src/doc/trpl/while-loops.md
+++ b/src/doc/trpl/while-loops.md
@@ -3,7 +3,7 @@
 Rust also has a `while` loop. It looks like this:
 
 ```{rust}
-let mut x = 5; // mut x: u32
+let mut x = 5; // mut x: i32
 let mut done = false; // mut done: bool
 
 while !done {