-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Mention more APIs in ParseIntError
docs
#143611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me, but I don't have reviewer permissions, so..
r? t-libs
library/core/src/num/error.rs
Outdated
@@ -45,8 +45,11 @@ impl From<!> for TryFromIntError { | |||
|
|||
/// An error which can be returned when parsing an integer. | |||
/// | |||
/// 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`]. | |||
/// For example, this error is used in `from_str_radix()` functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// For example, this error is used in `from_str_radix()` functions | |
/// For example, this error is returned by the `from_str_radix()` functions |
nit
Just as a general note, you should not usually |
c8af02b
to
ce88dd2
Compare
library/core/src/num/error.rs
Outdated
/// on the primitive integer types, such as [`i8::from_str_radix`]. | ||
/// For example, this error is returned by the `from_str_radix()` functions | ||
/// on the primitive integer types (such as [`i8::from_str_radix`]) | ||
/// and as the error type in their [`FromStr`] implementations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// and as the error type in their [`FromStr`] implementations. | |
/// and is used as the error type in their [`FromStr`] implementations. |
Just realized my change to the first half means the second half also needs to be rewritten in order to still make sense.
ce88dd2
to
ae5cb5f
Compare
Fixes #143602
r? @lolbinarycat
@rustbot label +A-docs