about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorOak <White-Oak@users.noreply.github.com>2015-04-10 23:16:47 +0400
committerOak <White-Oak@users.noreply.github.com>2015-04-10 23:16:47 +0400
commitc7697ee86dea35e2be3476c10cc4d9fe48ff7859 (patch)
tree73a3732a099109b258f1a8a7040184c456843369 /src/libcore/num
parent9539627ac76ca37d617a329dbd79c50c59cf59ee (diff)
downloadrust-c7697ee86dea35e2be3476c10cc4d9fe48ff7859.tar.gz
rust-c7697ee86dea35e2be3476c10cc4d9fe48ff7859.zip
mod.rs docs fix
Docs meant that Option is returned though the function returns Result.
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/mod.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 7868e299cfc..b826609bb7d 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -856,9 +856,8 @@ macro_rules! int_impl {
         ///
         /// # Return value
         ///
-        /// `None` if the string did not represent a valid number.
-        /// Otherwise, `Some(n)` where `n` is the integer represented
-        /// by `src`.
+        /// `Err(ParseIntError)` if the string did not represent a valid number.
+        /// Otherwise, `Ok(n)` where `n` is the integer represented by `src`.
         #[stable(feature = "rust1", since = "1.0.0")]
         #[allow(deprecated)]
         pub fn from_str_radix(src: &str, radix: u32) -> Result<$T, ParseIntError> {
@@ -1374,9 +1373,8 @@ macro_rules! uint_impl {
         ///
         /// # Return value
         ///
-        /// `None` if the string did not represent a valid number.
-        /// Otherwise, `Some(n)` where `n` is the integer represented
-        /// by `src`.
+        /// `Err(ParseIntError)` if the string did not represent a valid number.
+        /// Otherwise, `Ok(n)` where `n` is the integer represented by `src`.
         #[stable(feature = "rust1", since = "1.0.0")]
         #[allow(deprecated)]
         pub fn from_str_radix(src: &str, radix: u32) -> Result<$T, ParseIntError> {