about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexis Beingessner <a.beingessner@gmail.com>2014-10-20 21:18:59 -0400
committerAlexis Beingessner <a.beingessner@gmail.com>2014-10-20 21:18:59 -0400
commit01e8ad6c38f00de97dc2fdd8b4035da79273eda9 (patch)
tree294cccd8bf5eb864ae1039f31bfcac593732a61d /src
parentb6e0d3a5bf4c88650a22f605f822e02c6b163580 (diff)
downloadrust-01e8ad6c38f00de97dc2fdd8b4035da79273eda9.tar.gz
rust-01e8ad6c38f00de97dc2fdd8b4035da79273eda9.zip
Fix crazy-pants match in Option docs
Diffstat (limited to 'src')
-rw-r--r--src/libcore/option.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index 9b66f900d9c..ef77dbb4665 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -245,7 +245,7 @@ impl<T> Option<T> {
     /// ```
     /// let mut x = Some(2u);
     /// match x.as_mut() {
-    ///     Some(&ref mut v) => *v = 42,
+    ///     Some(v) => *v = 42,
     ///     None => {},
     /// }
     /// assert_eq!(x, Some(42u));