Skip to content

Commit b7b3498

Browse files
committed
Fix doctest failure
Tried to be fancy with print statements.
1 parent e8904f9 commit b7b3498

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libcore/option.rs

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

0 commit comments

Comments
 (0)