about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIgor Strebezhev <xamgore@ya.ru>2015-04-12 14:48:19 +0400
committerIgor Strebezhev <xamgore@ya.ru>2015-04-12 14:48:19 +0400
commit11c184616842e26836ed541e9ec1236f85c63334 (patch)
treeced9ea965dc6d0467064eda0f7a75476eb86c776
parentfeeb23d42e0b1bc6f0466d4c6f035cfc3a4e9718 (diff)
downloadrust-11c184616842e26836ed541e9ec1236f85c63334.tar.gz
rust-11c184616842e26836ed541e9ec1236f85c63334.zip
mod.rs documentary fix
Docs meant that Option is returned though the function returns Result.
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 4e4a928d91f..3fd179cf86f 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -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)]
@@ -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> {