mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:14:32 -06:00
rebuild pages at 03f40bc
This commit is contained in:
@@ -124,7 +124,7 @@ you're unsure what this is you can search for it online; an explanation is
|
||||
outside the scope of this text).</p>
|
||||
<p>Each signed variant can store numbers from -(2<sup>n - 1</sup>) to 2<sup>n -
|
||||
1</sup> - 1 inclusive, where <code>n</code> is the number of bits that variant uses. So an
|
||||
<code>i8</code> can store from -(2<sup>7</sup>) to 2<sup>7</sup>, which equals -128
|
||||
<code>i8</code> can store from -(2<sup>7</sup>) to 2<sup>7</sup> - 1, which equals -128
|
||||
to 127. Unsigned variants can store numbers from 0 to 2<sup>n</sup> - 1, so a
|
||||
<code>u8</code> can store from 0 to 2<sup>8</sup> - 1, which equals 0 to 255.</p>
|
||||
<p>Finally, the <code>isize</code> and <code>usize</code> types depend on the kind of computer your
|
||||
|
||||
+1
-1
@@ -1505,7 +1505,7 @@ you're unsure what this is you can search for it online; an explanation is
|
||||
outside the scope of this text).</p>
|
||||
<p>Each signed variant can store numbers from -(2<sup>n - 1</sup>) to 2<sup>n -
|
||||
1</sup> - 1 inclusive, where <code>n</code> is the number of bits that variant uses. So an
|
||||
<code>i8</code> can store from -(2<sup>7</sup>) to 2<sup>7</sup>, which equals -128
|
||||
<code>i8</code> can store from -(2<sup>7</sup>) to 2<sup>7</sup> - 1, which equals -128
|
||||
to 127. Unsigned variants can store numbers from 0 to 2<sup>n</sup> - 1, so a
|
||||
<code>u8</code> can store from 0 to 2<sup>8</sup> - 1, which equals 0 to 255.</p>
|
||||
<p>Finally, the <code>isize</code> and <code>usize</code> types depend on the kind of computer your
|
||||
|
||||
Reference in New Issue
Block a user