Skip to content
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

Document of pow() can be more helpful #48396

Closed
ordovicia opened this issue Feb 21, 2018 · 0 comments
Closed

Document of pow() can be more helpful #48396

ordovicia opened this issue Feb 21, 2018 · 0 comments
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

@ordovicia
Copy link
Contributor

Document of pow() for signed integers and for unsingned integers take 2^4 (^ is not xor but power) as examples.
Because 2^4 = 4^2, these examples are not very helpful for those unfamiliar with math words in English and thus rely on example codes.
We should take another example, e.g. 2^5 (which is not equal to 5^2).

ordovicia added a commit to ordovicia/rust that referenced this issue Feb 21, 2018
Current document takes 2^4, which is equal to 4^2.
This example is not very helpful for those unfamiliar with math words in English and thus rely on example codes.
@kennytm kennytm 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 Feb 21, 2018
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Feb 21, 2018
Take 2^5 as examples in document of pow()

Fixes rust-lang#48396 by taking 2^5 as examples.
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

2 participants