diff options
| author | Devon Hollowood <devonhollowood@gmail.com> | 2015-11-20 00:41:10 -0800 |
|---|---|---|
| committer | Devon Hollowood <devonhollowood@gmail.com> | 2015-11-20 00:41:10 -0800 |
| commit | da5dd298d4380cf5e96acb26eaf5977c124ce873 (patch) | |
| tree | 059d38d8e2d6ff536d2a7c7019a6c32a2b3ef61e /src | |
| parent | 6861c51453963317849b4488ddc6a110e4f3470a (diff) | |
| download | rust-da5dd298d4380cf5e96acb26eaf5977c124ce873.tar.gz rust-da5dd298d4380cf5e96acb26eaf5977c124ce873.zip | |
Add information about str::parse() in FromStr docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/str/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index f82b9d79d5c..c246b310543 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -37,6 +37,13 @@ pub mod pattern; /// 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. |
