From bbb5311ad692819f979e9c9b1cd506b63c901378 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Sun, 30 Jul 2017 23:20:54 +0200 Subject: [PATCH] Document the `from_str_radix` panic CC #42034 --- src/libcore/num/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index d533310625e59..c5175287ccfa6 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -131,6 +131,10 @@ macro_rules! int_impl { /// /// Leading and trailing whitespace represent an error. /// + /// # Panics + /// + /// This function panics if `radix` is not in the range from 2 to 36. + /// /// # Examples /// /// Basic usage: