Skip to content

Commit

Permalink
mod.rs documentary fix
Browse files Browse the repository at this point in the history
Docs meant that Option is returned though the function returns Result.
  • Loading branch information
xamgore committed Apr 12, 2015
1 parent feeb23d commit 11c1846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ macro_rules! from_str_radix_float_impl {
///
/// # Return value
///
/// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
/// `Err(ParseFloatError)` if the string did not represent a valid number.
/// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
#[inline]
#[allow(deprecated)]
Expand Down Expand Up @@ -2734,7 +2734,7 @@ macro_rules! from_str_radix_float_impl {
///
/// # Return value
///
/// `Err(ParseIntError)` if the string did not represent a valid number. Otherwise,
/// `Err(ParseFloatError)` if the string did not represent a valid number.
/// Otherwise, `Ok(n)` where `n` is the floating-point number represented by `src`.
fn from_str_radix(src: &str, radix: u32)
-> Result<$T, ParseFloatError> {
Expand Down

0 comments on commit 11c1846

Please sign in to comment.