未验证 提交 c94345e3 编写于 作者: T Tyler Mandry 提交者: GitHub

Rollup merge of #79871 - Pratyush:patch-1, r=joshtriplett

Fix small typo in `wrapping_shl` documentation

Fixes a small typo in the documentation.
......@@ -1211,7 +1211,7 @@ pub const fn wrapping_neg(self) -> Self {
Note that this is *not* the same as a rotate-left; the RHS of a wrapping shift-left is restricted to
the range of the type, rather than the bits shifted out of the LHS being returned to the other end.
The primitive integer types all implement a `[`rotate_left`](#method.rotate_left) function,
The primitive integer types all implement a [`rotate_left`](#method.rotate_left) function,
which may be what you want instead.
# Examples
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册