Skip to content

Commit

Permalink
Rollup merge of rust-lang#46240 - SimonSapin:from_str_radix-docs, r=e…
Browse files Browse the repository at this point in the history
…stebank

Expand docs of <$Int>::from_str_radix, based on that of char::to_digit
  • Loading branch information
kennytm committed Nov 27, 2017
2 parents 26330b1 + 5962d7e commit 840e6c1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/libcore/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down Expand Up @@ -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
///
Expand Down

0 comments on commit 840e6c1

Please sign in to comment.