Skip to content

Commit 942bafa

Browse files
committed
Fix isize/usize doc string referring to wrong macro variable
1 parent 7391ffd commit 942bafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ macro_rules! from_str_radix_size_impl {
15931593
/// Basic usage:
15941594
///
15951595
/// ```
1596-
#[doc = concat!("assert_eq!(", stringify!($int_ty), "::from_str_radix(\"A\", 16), Ok(10));")]
1596+
#[doc = concat!("assert_eq!(", stringify!($size), "::from_str_radix(\"A\", 16), Ok(10));")]
15971597
/// ```
15981598
#[stable(feature = "rust1", since = "1.0.0")]
15991599
#[rustc_const_unstable(feature = "const_int_from_str", issue = "59133")]

0 commit comments

Comments
 (0)