Expand docs of <$Int>::from_str_radix, based on that of char::to_digit

This commit is contained in:
Simon Sapin 2017-11-24 18:52:42 +01:00
parent 71da1c21eb
commit 5962d7e007

View File

@ -132,7 +132,14 @@ macro_rules! int_impl {
/// Converts a string slice in a given base to an integer.
///
/// The string is expected to be an optional `+` or `-` sign
/// followed by digits.
/// Leading and trailing whitespace represent an error.
/// Digits are a subset of these characters, depending on `radix`:
///
/// * `0-9`
/// * `a-z`
/// * `A-Z`
///
/// # Panics
///
@ -1301,7 +1308,18 @@ macro_rules! uint_impl {
/// Converts a string slice in a given base to an integer.
///
/// The string is expected to be an optional `+` sign
/// followed by digits.
/// Leading and trailing whitespace represent an error.
/// Digits are a subset of these characters, depending on `radix`:
///
/// * `0-9`
/// * `a-z`
/// * `A-Z`
///
/// # Panics
///
/// This function panics if `radix` is not in the range from 2 to 36.
///
/// # Examples
///