mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 21:31:17 -06:00
rebuild pages at 0dbadf5
This commit is contained in:
@@ -168,7 +168,7 @@ Chapter XX for how to run benchmarks.</p>
|
||||
<h4>Numeric Operations</h4>
|
||||
<p>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 <code>let</code> statement:</p>
|
||||
remainder. This code shows how you'd use each one in a <code>let</code> statement:</p>
|
||||
<p>Filename: src/main.rs</p>
|
||||
<pre><code class="language-rust">fn main() {
|
||||
// addition
|
||||
@@ -183,7 +183,7 @@ modulo. This code shows how you'd use each one in a <code>let</code> statement:<
|
||||
// division
|
||||
let quotient = 56.7 / 32.2;
|
||||
|
||||
// modulo
|
||||
// remainder
|
||||
let remainder = 43 % 5;
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
+2
-2
@@ -1549,7 +1549,7 @@ Chapter XX for how to run benchmarks.</p>
|
||||
<h4>Numeric Operations</h4>
|
||||
<p>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 <code>let</code> statement:</p>
|
||||
remainder. This code shows how you'd use each one in a <code>let</code> statement:</p>
|
||||
<p>Filename: src/main.rs</p>
|
||||
<pre><code class="language-rust">fn main() {
|
||||
// addition
|
||||
@@ -1564,7 +1564,7 @@ modulo. This code shows how you'd use each one in a <code>let</code> statement:<
|
||||
// division
|
||||
let quotient = 56.7 / 32.2;
|
||||
|
||||
// modulo
|
||||
// remainder
|
||||
let remainder = 43 % 5;
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
Reference in New Issue
Block a user