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 0deff27 commit df42cbdCopy full SHA for df42cbd
src/libcore/convert.rs
@@ -83,10 +83,8 @@ pub trait Into<T>: Sized {
83
/// `String` implements `From<&str>`:
84
///
85
/// ```
86
-/// let s = "hello";
87
/// let string = "hello".to_string();
88
-///
89
-/// let other_string: String = From::from(s);
+/// let other_string = String::from("hello");
90
91
/// assert_eq!(string, other_string);
92
0 commit comments