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 ef1688d commit 6c3856fCopy full SHA for 6c3856f
src/libcore/option.rs
@@ -1389,7 +1389,9 @@ impl<'a, T> From<&'a Option<T>> for Option<&'a T> {
1389
/// ```
1390
/// let s: Option<String> = Some(String::from("Hello, Rustaceans!"));
1391
/// let o: Option<usize> = Option::from(&s).map(|ss: &String| ss.len());
1392
+ ///
1393
/// println!("Can still print s: {:?}", s);
1394
1395
/// assert_eq!(o, Some(18));
1396
1397
fn from(o: &'a Option<T>) -> Option<&'a T> {
0 commit comments