提交 01e8ad6c 编写于 作者: A Alexis Beingessner

Fix crazy-pants match in Option docs

上级 b6e0d3a5
......@@ -245,7 +245,7 @@ pub fn as_ref<'r>(&'r self) -> Option<&'r 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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册