Fix doctest failure

Tried to be fancy with print statements.
This commit is contained in:
Phlosioneer 2018-02-26 19:48:15 -05:00
parent e8904f935a
commit b7b3498ce8

View file

@ -237,7 +237,6 @@ impl<T> Option<T> {
/// // First, cast `Option<String>` to `Option<&String>` with `as_ref`,
/// // then consume *that* with `map`, leaving `text` on the stack.
/// let text_length: Option<usize> = text.as_ref().map(|s| s.len());
/// println!("text length: {}", text_length);
/// println!("still can print text: {:?}", text);
/// ```
#[inline]