]> git.lizzy.rs Git - rust.git/commitdiff
Fix for https://github.com/rust-lang/rust/pull/25583
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 20 May 2015 03:22:28 +0000 (23:22 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 20 May 2015 03:22:28 +0000 (23:22 -0400)
src/libcore/num/mod.rs

index 91faba7376bcafcac8ae539790a5a675275433b0..e560fae31a17e91f2bf43e5dae1f39f7631160bc 100644 (file)
@@ -135,7 +135,7 @@ pub fn max_value() -> $T {
         /// # Examples
         ///
         /// ```
-        /// assert_eq!(u32::from_str_radix("A", 16), Some(10));
+        /// assert_eq!(u32::from_str_radix("A", 16), Ok(10));
         /// ```
         #[stable(feature = "rust1", since = "1.0.0")]
         #[allow(deprecated)]