rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
98.53k stars 12.74k forks source link

Missing period and colon in the description of methods for some primitive types #133018

Open sorairolake opened 15 hours ago

sorairolake commented 15 hours ago

Location

Methods for signed integer types which are missing a period:

Methods for unsigned integer types which are missing a period:

Methods for primitive types which are missing a colon:

Summary

I think the methods in the top two chunks above are missing a period at the end of the sentence.

For i32::unbounded_shl and u32::unbounded_shl:

-Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
+Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`.

For i32::unbounded_shr and u32::unbounded_shr:

-Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
+Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`.

For i32::overflowing_sub and u32::overflowing_sub:

-Calculates `self` - `rhs`
+Calculates `self` - `rhs`.

For i32::overflowing_sub_unsigned:

-Calculates `self` - `rhs` with an unsigned `rhs`
+Calculates `self` - `rhs` with an unsigned `rhs`.

Also, I think the methods in the last chunk are missing a colon in the examples section.

For u32::overflowing_add, u32::overflowing_sub, u32::overflowing_div, etc.:

-Basic usage
+Basic usage:
sorairolake commented 14 hours ago

@rustbot claim

sorairolake commented 13 hours ago

str::parse is also missing a colon, so I'll fix this too.