We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f07a4 commit 2badd41Copy full SHA for 2badd41
src/libcore/option.rs
@@ -1387,7 +1387,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
1387
/// ```
1388
/// let s: Option<String> = Some(String::from("Hello, Rustaceans!"));
1389
/// let o: Option<usize> = Option::from(&s).map(|ss: &String| ss.len());
1390
- /// println!("Can still print s: {}", s);
+ /// println!("Can still print s: {:?}", s);
1391
/// assert_eq!(o, Some(18));
1392
1393
fn from(o: &'a Option<T>) -> Option<&'a T> {
0 commit comments