From b7b3498ce86d025ed84b0daa9a28588190ac444a Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Mon, 26 Feb 2018 19:48:15 -0500 Subject: [PATCH] Fix doctest failure Tried to be fancy with print statements. --- src/libcore/option.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 5c9fe8600768..2b77ba391227 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -237,7 +237,6 @@ impl Option { /// // First, cast `Option` to `Option<&String>` with `as_ref`, /// // then consume *that* with `map`, leaving `text` on the stack. /// let text_length: Option = text.as_ref().map(|s| s.len()); - /// println!("text length: {}", text_length); /// println!("still can print text: {:?}", text); /// ``` #[inline]