]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-int-arithmetic-overflow.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / consts / const-int-arithmetic-overflow.rs
index 75dac812f1e3a749e1ecb7786965fc9be1633742..99bbeaafda5c47f51b3563da6b74f84033649d56 100644 (file)
@@ -8,7 +8,7 @@
 const fn add(x: i8, y: i8) -> i8 { x+y }
 const fn sub(x: i8, y: i8) -> i8 { x-y }
 const fn mul(x: i8, y: i8) -> i8 { x*y }
-// div and rem are always checked, so we cannot test their result in case of oveflow.
+// div and rem are always checked, so we cannot test their result in case of overflow.
 const fn neg(x: i8) -> i8 { -x }
 
 fn main() {