Skip to content

Commit bbb5311

Browse files
committed
Document the from_str_radix panic
CC #42034
1 parent 489b792 commit bbb5311

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/num/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ macro_rules! int_impl {
131131
///
132132
/// Leading and trailing whitespace represent an error.
133133
///
134+
/// # Panics
135+
///
136+
/// This function panics if `radix` is not in the range from 2 to 36.
137+
///
134138
/// # Examples
135139
///
136140
/// Basic usage:

0 commit comments

Comments
 (0)