Skip to content

Mention more APIs in ParseIntError docs - #143611

Merged
bors merged 1 commit into
rust-lang:masterfrom
GrigorenkoPV:ParseIntError
Jul 12, 2025
Merged

Mention more APIs in ParseIntError docs#143611
bors merged 1 commit into
rust-lang:masterfrom
GrigorenkoPV:ParseIntError

Conversation

@GrigorenkoPV

@GrigorenkoPV GrigorenkoPV commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

Fixes #143602

r? @lolbinarycat

@rustbot label +A-docs

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Jul 7, 2025

@lolbinarycat lolbinarycat left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread library/core/src/num/error.rs Outdated
///
/// 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// For example, this error is used in `from_str_radix()` functions
/// For example, this error is returned by the `from_str_radix()` functions

nit

@rustbot rustbot assigned thomcc and unassigned lolbinarycat Jul 7, 2025
@ChrisDenton

Copy link
Copy Markdown
Member

Just as a general note, you should not usually r? an individual unless they explicitly asked for it (or you know they're the only person able to review). Even if someone with r+ permissions creates an issue, they may not have the bandwidth to review and someone else might be able and willing to. You can still @ them if you think it's important that they're aware.

Comment thread 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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.

@tgross35

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Jul 11, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit ae5cb5f has been approved by tgross35

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 11, 2025
@tgross35 tgross35 assigned tgross35 and unassigned thomcc Jul 11, 2025
@bors
bors merged commit 2ffaa1e into rust-lang:master Jul 12, 2025
@rustbot rustbot added this to the 1.90.0 milestone Jul 12, 2025
@GrigorenkoPV
GrigorenkoPV deleted the ParseIntError branch July 12, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ParseIntError docs should mention other integer parsing functions

7 participants