We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dba51b commit 9e4c2b6Copy full SHA for 9e4c2b6
src/lib/uint.rs
@@ -14,15 +14,15 @@ pure fn max_value() -> uint {
14
ret 0u - 1u;
15
}
16
17
-fn add(x: uint, y: uint) -> uint { ret x + y; }
+pure fn add(x: uint, y: uint) -> uint { ret x + y; }
18
19
-fn sub(x: uint, y: uint) -> uint { ret x - y; }
+pure fn sub(x: uint, y: uint) -> uint { ret x - y; }
20
21
-fn mul(x: uint, y: uint) -> uint { ret x * y; }
+pure fn mul(x: uint, y: uint) -> uint { ret x * y; }
22
23
-fn div(x: uint, y: uint) -> uint { ret x / y; }
+pure fn div(x: uint, y: uint) -> uint { ret x / y; }
24
25
-fn rem(x: uint, y: uint) -> uint { ret x % y; }
+pure fn rem(x: uint, y: uint) -> uint { ret x % y; }
26
27
pure fn lt(x: uint, y: uint) -> bool { ret x < y; }
28
0 commit comments