Skip to content

Commit 257fb4b

Browse files
committed
Auto merge of rust-lang#9543 - philipcraig:fix-saturing-typo, r=giraffate
fix typo "Saturing" -> "Saturating" --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: fix typo "Saturing" -> "Saturating"
2 parents 47c9145 + 14abb83 commit 257fb4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/operators/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ declare_clippy_lint! {
6767
/// Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow),
6868
/// or can panic (`/`, `%`).
6969
///
70-
/// Known safe built-in types like `Wrapping` or `Saturing`, floats, operations in constant
70+
/// Known safe built-in types like `Wrapping` or `Saturating`, floats, operations in constant
7171
/// environments, allowed types and non-constant operations that won't overflow are ignored.
7272
///
7373
/// ### Why is this bad?

src/docs/arithmetic_side_effects.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Operators like `+`, `-`, `*` or `<<` are usually capable of overflowing accordin
55
Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow),
66
or can panic (`/`, `%`).
77

8-
Known safe built-in types like `Wrapping` or `Saturing`, floats, operations in constant
8+
Known safe built-in types like `Wrapping` or `Saturating`, floats, operations in constant
99
environments, allowed types and non-constant operations that won't overflow are ignored.
1010

1111
### Why is this bad?

0 commit comments

Comments
 (0)