]> git.lizzy.rs Git - rust.git/commitdiff
Add information about str::parse() in FromStr docs
authorDevon Hollowood <devonhollowood@gmail.com>
Fri, 20 Nov 2015 08:41:10 +0000 (00:41 -0800)
committerDevon Hollowood <devonhollowood@gmail.com>
Fri, 20 Nov 2015 08:41:10 +0000 (00:41 -0800)
src/libcore/str/mod.rs

index f82b9d79d5cd482f41d907584f3ccc6a834f8ae4..c246b3105439406456cf4371bfc9a665c579cc1c 100644 (file)
 
 /// A trait to abstract the idea of creating a new instance of a type from a
 /// string.
+///
+/// `FromStr`'s [`from_str()`] method is often used implicitly, through
+/// [`str`]'s [`parse()`] method. See [`parse()`]'s documentation for examples.
+///
+/// [`from_str()`]: #tymethod.from_str
+/// [`str`]: ../primitive.str.html
+/// [`parse()`]: ../primitive.str.html#method.parse
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait FromStr: Sized {
     /// The associated error which can be returned from parsing.