about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2017-07-30 23:20:54 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2017-07-30 23:20:54 +0200
commitbbb5311ad692819f979e9c9b1cd506b63c901378 (patch)
tree397bd2ee883b4990417971470d04a6e3d2254a31
parent489b792babba74b57f1793e91a76fd1f55972759 (diff)
Document the `from_str_radix` panic
CC #42034
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index d533310625e..c5175287ccf 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: