Skip to content

Commit c1c5c8b

Browse files
committed
Add from_str docs
1 parent be43625 commit c1c5c8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/from_str.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub trait FromStr {
2020
fn from_str(s: &str) -> Option<Self>;
2121
}
2222

23+
/// A utility function that just calls FromStr::from_str
2324
pub fn from_str<A: FromStr>(s: &str) -> Option<A> {
2425
FromStr::from_str(s)
2526
}

0 commit comments

Comments
 (0)