Skip to content

Commit 15266f9

Browse files
committed
Auto merge of #43563 - tbu-:pr_from_str_radix_panic, r=alexcrichton
Document the `from_str_radix` panic CC #42034
2 parents aac223f + bbb5311 commit 15266f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: 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)