summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-27 14:45:43 +0000
committerbors <bors@rust-lang.org>2015-04-27 14:45:43 +0000
commit32f9f4276271bac1b8c3bc569ceed5cfaf992f29 (patch)
treeee1dacb85756e6fea3059a48f345317eb2986271 /src/libcore
parentb772ce6342962792620e21623997d0d3b98164b7 (diff)
parent03f3b45ff0875926e245b1e6975d0578fd640468 (diff)
downloadrust-32f9f4276271bac1b8c3bc569ceed5cfaf992f29.tar.gz
rust-32f9f4276271bac1b8c3bc569ceed5cfaf992f29.zip
Auto merge of #24869 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #24797, #24804, #24848, #24854, #24855, #24860, #24863, #24866, #24867, #24868
- Failed merges: 
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/convert.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs
index d9cda58d9eb..d3de77a9241 100644
--- a/src/libcore/convert.rs
+++ b/src/libcore/convert.rs
@@ -83,10 +83,8 @@ pub trait Into<T>: Sized {
 /// `String` implements `From<&str>`:
 ///
 /// ```
-/// let s = "hello";
 /// let string = "hello".to_string();
-///
-/// let other_string: String = From::from(s);
+/// let other_string = String::from("hello");
 ///
 /// assert_eq!(string, other_string);
 /// ```