Skip to content

Commit 2badd41

Browse files
committed
Fix example
1 parent 73f07a4 commit 2badd41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
13871387
/// ```
13881388
/// let s: Option<String> = Some(String::from("Hello, Rustaceans!"));
13891389
/// let o: Option<usize> = Option::from(&s).map(|ss: &String| ss.len());
1390-
/// println!("Can still print s: {}", s);
1390+
/// println!("Can still print s: {:?}", s);
13911391
/// assert_eq!(o, Some(18));
13921392
/// ```
13931393
fn from(o: &'a Option<T>) -> Option<&'a T> {

0 commit comments

Comments
 (0)