Fix doctest failure
Tried to be fancy with print statements.
This commit is contained in:
parent
e8904f935a
commit
b7b3498ce8
1 changed files with 0 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue