Skip to content

Commit 35793a4

Browse files
authored
Rollup merge of rust-lang#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!
2 parents 8d9086f + 69d3334 commit 35793a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ $EndFeature, "
15731573
the boundary of the type.
15741574
15751575
The only case where such wrapping can occur is when one takes the absolute value of the negative
1576-
minimal value for the type this is a positive value that is too large to represent in the type. In
1576+
minimal value for the type; this is a positive value that is too large to represent in the type. In
15771577
such a case, this function returns `MIN` itself.
15781578
15791579
# Examples

0 commit comments

Comments
 (0)