]> git.lizzy.rs Git - rust.git/blobdiff - src/docs/arithmetic_side_effects.txt
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / src / docs / arithmetic_side_effects.txt
index 6c7d51a4989e0b34f54d89c444399be3f502e8f2..b8c0872522ee12e9068b40288ff835bca1002b94 100644 (file)
@@ -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?
@@ -30,4 +30,4 @@ let _n = Decimal::MAX + Decimal::MAX;
 ```
 
 ### Allowed types
-Custom allowed types can be specified through the "arithmetic-side-effects-allowed" filter.
\ No newline at end of file
+Custom allowed types can be specified through the "arithmetic-side-effects-allowed" filter.