Skip to content

Commit ef5ee7d

Browse files
committed
Auto merge of #29948 - devonhollowood:fromstr-parse, r=steveklabnik
Implement #29919
2 parents d1c7a93 + da5dd29 commit ef5ee7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libcore/str/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ pub mod pattern;
3737

3838
/// A trait to abstract the idea of creating a new instance of a type from a
3939
/// string.
40+
///
41+
/// `FromStr`'s [`from_str()`] method is often used implicitly, through
42+
/// [`str`]'s [`parse()`] method. See [`parse()`]'s documentation for examples.
43+
///
44+
/// [`from_str()`]: #tymethod.from_str
45+
/// [`str`]: ../primitive.str.html
46+
/// [`parse()`]: ../primitive.str.html#method.parse
4047
#[stable(feature = "rust1", since = "1.0.0")]
4148
pub trait FromStr: Sized {
4249
/// The associated error which can be returned from parsing.

0 commit comments

Comments
 (0)