We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8904f9 commit b7b3498Copy full SHA for b7b3498
src/libcore/option.rs
@@ -237,7 +237,6 @@ impl<T> Option<T> {
237
/// // First, cast `Option<String>` to `Option<&String>` with `as_ref`,
238
/// // then consume *that* with `map`, leaving `text` on the stack.
239
/// let text_length: Option<usize> = text.as_ref().map(|s| s.len());
240
- /// println!("text length: {}", text_length);
241
/// println!("still can print text: {:?}", text);
242
/// ```
243
#[inline]
0 commit comments