Skip to content

Documentation for usize::wrapping_sub mentions undeclared variable #46308

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

Closed
jeehoonkang opened this issue Nov 27, 2017 · 1 comment
Closed
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@jeehoonkang
Copy link
Contributor

Here, "Computes self - other" should be "Computes self - rhs":

/// Wrapping (modular) subtraction. Computes `self - other`,

Similarly for many other methods for usize.

@TimNN TimNN added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Nov 28, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this issue Dec 3, 2017
Some checked operations use `rhs` as a parameter name, and some use
`other`. For the sake of consistency, unify everything under the `rhs`
name.

Fixes rust-lang#46308.
@frewsxcv
Copy link
Member

frewsxcv commented Dec 3, 2017

frewsxcv added a commit to frewsxcv/rust that referenced this issue Dec 3, 2017
Consistent parameter name for numeric ‘checked’ operations.

Some checked operations use `rhs` as a parameter name, and some use
`other`. For the sake of consistency, unify everything under the `rhs`
name.

Fixes rust-lang#46308.
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 C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

3 participants