diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-08-24 11:48:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-24 11:48:44 +0900 |
| commit | b8e456f2db80e2f9bf030232315ff2c9137be7fb (patch) | |
| tree | 1570199122b899b648397b5554ae2edc32680423 | |
| parent | 640b36f97acaa066cbbe2d647bf7e5ef14602b69 (diff) | |
| parent | 69d3334adf9d7042546aba741bca7fc7b0ffd2bc (diff) | |
| download | rust-b8e456f2db80e2f9bf030232315ff2c9137be7fb.tar.gz rust-b8e456f2db80e2f9bf030232315ff2c9137be7fb.zip | |
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!
| -rw-r--r-- | library/core/src/num/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs index 68937176270..7a88cfbb74d 100644 --- a/library/core/src/num/mod.rs +++ b/library/core/src/num/mod.rs @@ -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 |
