mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Rollup merge of #75825 - jrheard:patch-1, r=steveklabnik
Fix typo in documentation of i32 wrapping_abs() Hi! I was reading through the std library docs and noticed that this section flowed a bit oddly; comparing it against https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_div and https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_neg , I noticed that those two pieces of documentation used a semicolon here. This is my first time submitting a PR to this repo. Am I doing this right? Are tiny typo-fix PRs like this worth submitting, or are they not a good use of time? Thank you!
This commit is contained in:
commit
b8e456f2db
@ -1573,7 +1573,7 @@ $EndFeature, "
|
||||
the boundary of the type.
|
||||
|
||||
The only case where such wrapping can occur is when one takes the absolute value of the negative
|
||||
minimal value for the type this is a positive value that is too large to represent in the type. In
|
||||
minimal value for the type; this is a positive value that is too large to represent in the type. In
|
||||
such a case, this function returns `MIN` itself.
|
||||
|
||||
# Examples
|
||||
|
Loading…
Reference in New Issue
Block a user