diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-05-19 23:22:28 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-05-19 23:22:28 -0400 |
| commit | 395d01cf64579312b9b6924d8056264abaaf33f7 (patch) | |
| tree | 526e0e3105f545c8b6686435dc81bf60820c2704 /src/libcore/num | |
| parent | 55da4c69752119b80f17351784de45f66540066f (diff) | |
| download | rust-395d01cf64579312b9b6924d8056264abaaf33f7.tar.gz rust-395d01cf64579312b9b6924d8056264abaaf33f7.zip | |
Fix for https://github.com/rust-lang/rust/pull/25583
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 91faba7376b..e560fae31a1 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -135,7 +135,7 @@ macro_rules! int_impl { /// # 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)] |
