about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJared Manning <jaredmanning@users.noreply.github.com>2016-07-03 03:01:18 -0500
committerGitHub <noreply@github.com>2016-07-03 03:01:18 -0500
commit5dfd79a8e624670f041e648ec2ac140699ea5322 (patch)
treee706b281bd288f0ed9387a2467c8c8ad8423a914 /src
parentecbfa4749ab306160cee0c45fde3b0c04356ece1 (diff)
downloadrust-5dfd79a8e624670f041e648ec2ac140699ea5322.tar.gz
rust-5dfd79a8e624670f041e648ec2ac140699ea5322.zip
Fix spacing in for loop enumeration example
Add a space between the comma and j in (i, j) to make it look nice.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/loops.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/loops.md b/src/doc/book/loops.md
index e23e6f3a786..e681d1bee06 100644
--- a/src/doc/book/loops.md
+++ b/src/doc/book/loops.md
@@ -105,7 +105,7 @@ When you need to keep track of how many times you already looped, you can use th
 #### On ranges:
 
 ```rust
-for (i,j) in (5..10).enumerate() {
+for (i, j) in (5..10).enumerate() {
     println!("i = {} and j = {}", i, j);
 }
 ```