From 999189fb2034fbd6bb39099bd6fa6662f71b6eec Mon Sep 17 00:00:00 2001
From: Steve Klabnik
Rust supports the usual basic mathematic operations you’d expect for all of
these number types: addition, subtraction, multiplication, division, and
-modulo. This code shows how you'd use each one in a let statement:
let statement:
Filename: src/main.rs
fn main() {
// addition
@@ -183,7 +183,7 @@ modulo. This code shows how you'd use each one in a let statement:<
// division
let quotient = 56.7 / 32.2;
- // modulo
+ // remainder
let remainder = 43 % 5;
}
diff --git a/print.html b/print.html
index b68099b62..a09d3d471 100644
--- a/print.html
+++ b/print.html
@@ -1549,7 +1549,7 @@ Chapter XX for how to run benchmarks.
Rust supports the usual basic mathematic operations you’d expect for all of
these number types: addition, subtraction, multiplication, division, and
-modulo. This code shows how you'd use each one in a let statement:
let statement:
Filename: src/main.rs
fn main() {
// addition
@@ -1564,7 +1564,7 @@ modulo. This code shows how you'd use each one in a let statement:<
// division
let quotient = 56.7 / 32.2;
- // modulo
+ // remainder
let remainder = 43 % 5;
}