From 01e8ad6c38f00de97dc2fdd8b4035da79273eda9 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Mon, 20 Oct 2014 21:18:59 -0400 Subject: [PATCH] Fix crazy-pants match in Option docs --- src/libcore/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 9b66f900d9c8..ef77dbb46653 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -245,7 +245,7 @@ impl Option { /// ``` /// 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));