about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-05-05 16:56:01 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-05-05 16:56:01 -0400
commit8aaafeaf797fa7cb1157023fcd3f1eccc1deb3de (patch)
treeb1d857fb66bc003f9d50cf7583f1f6d9be32f3ca /src
parent477cf9c606803801fd9d2bba098b01e78123a27f (diff)
parent04765866436a6d89642bdd69f3d8fb1e8012a463 (diff)
downloadrust-8aaafeaf797fa7cb1157023fcd3f1eccc1deb3de.tar.gz
rust-8aaafeaf797fa7cb1157023fcd3f1eccc1deb3de.zip
Rollup merge of #25112 - jsyeo:jsyeo-while-let, r=alexcrichton
The indentation in this example is messed up. The `_ => break,` line was using a tab instead of spaces to indent.
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 7173303e3b1..4872ed6a773 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,
+        _ => break,
     }
 }
 ```