about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-10-15 00:19:47 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-10-15 00:19:47 +0200
commit18fa6d8dbcbb8ba46ecd95000727e11acb8a1eaa (patch)
tree679439769cb6e69e806e00071084f573dace64b3 /src
parentec4362da562a4b591a7d120c6677e14ea713481a (diff)
downloadrust-18fa6d8dbcbb8ba46ecd95000727e11acb8a1eaa.tar.gz
rust-18fa6d8dbcbb8ba46ecd95000727e11acb8a1eaa.zip
book: be consistent with preceding example
Diffstat (limited to 'src')
-rw-r--r--src/doc/trpl/if-let.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/if-let.md b/src/doc/trpl/if-let.md
index 4872ed6a773..6f105b7c6c4 100644
--- a/src/doc/trpl/if-let.md
+++ b/src/doc/trpl/if-let.md
@@ -65,7 +65,7 @@ loop as long as a value matches a certain pattern. It turns code like this:
 loop {
     match option {
         Some(x) => println!("{}", x),
-        _ => break,
+        None => break,
     }
 }
 ```