Modify wording and remove useless whitespaces.
This commit is contained in:
parent
247fc38aeb
commit
ef1aae1cc2
1 changed files with 3 additions and 3 deletions
|
@ -3845,11 +3845,11 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) -> Result<T, Par
|
|||
///
|
||||
/// This error is used as the error type for the `from_str_radix()` functions
|
||||
/// on the primitive integer types, such as [`i8::from_str_radix`].
|
||||
///
|
||||
///
|
||||
/// # Potential causes
|
||||
///
|
||||
/// Among other causes, `ParseIntError` can be thrown because of leading or trailing whitespaces
|
||||
/// in the string e.g. when it is getted from the standard input.
|
||||
/// Among other causes, `ParseIntError` can be thrown because of leading or trailing whitespaces
|
||||
/// in the string e.g. when it is obtained from the standard input.
|
||||
/// Using the [`str.trim()`] method ensures that no whitespace remains before parsing.
|
||||
///
|
||||
/// [`str.trim()`]: ../../std/primitive.str.html#method.trim
|
||||
|
|
Loading…
Reference in a new issue