diff options
| author | Philip Craig <689193+philipcraig@users.noreply.github.com> | 2022-09-27 09:32:55 +0100 |
|---|---|---|
| committer | Philip Craig <689193+philipcraig@users.noreply.github.com> | 2022-09-27 09:32:55 +0100 |
| commit | 14abb8395c4ae09475539dbc55ba89dd533981d9 (patch) | |
| tree | 347dc542155e03ec1eb3f760275b9ac2c8624f36 | |
| parent | 78dc616a7ae9815ea6bacccbb3aa40d27ed5eb6c (diff) | |
| download | rust-14abb8395c4ae09475539dbc55ba89dd533981d9.tar.gz rust-14abb8395c4ae09475539dbc55ba89dd533981d9.zip | |
fix typo "Saturing" -> "Saturating"
| -rw-r--r-- | clippy_lints/src/operators/mod.rs | 2 | ||||
| -rw-r--r-- | src/docs/arithmetic_side_effects.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/operators/mod.rs b/clippy_lints/src/operators/mod.rs index c32b4df4f75..b8a20d5ebe9 100644 --- a/clippy_lints/src/operators/mod.rs +++ b/clippy_lints/src/operators/mod.rs @@ -67,7 +67,7 @@ declare_clippy_lint! { /// Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow), /// or can panic (`/`, `%`). /// - /// Known safe built-in types like `Wrapping` or `Saturing`, floats, operations in constant + /// Known safe built-in types like `Wrapping` or `Saturating`, floats, operations in constant /// environments, allowed types and non-constant operations that won't overflow are ignored. /// /// ### Why is this bad? diff --git a/src/docs/arithmetic_side_effects.txt b/src/docs/arithmetic_side_effects.txt index 6c7d51a4989..4ae8bce88ad 100644 --- a/src/docs/arithmetic_side_effects.txt +++ b/src/docs/arithmetic_side_effects.txt @@ -5,7 +5,7 @@ Operators like `+`, `-`, `*` or `<<` are usually capable of overflowing accordin Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow), or can panic (`/`, `%`). -Known safe built-in types like `Wrapping` or `Saturing`, floats, operations in constant +Known safe built-in types like `Wrapping` or `Saturating`, floats, operations in constant environments, allowed types and non-constant operations that won't overflow are ignored. ### Why is this bad? |
