From d01b83578718d6ffbb83254840967e0299b8f87f Mon Sep 17 00:00:00 2001 From: F001 Date: Mon, 10 Apr 2017 15:36:42 +0800 Subject: [PATCH] Fix superscript format The format of superscripts are wrong. --- second-edition/nostarch/chapter03.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/second-edition/nostarch/chapter03.md b/second-edition/nostarch/chapter03.md index 8660210fd..a70d090f2 100644 --- a/second-edition/nostarch/chapter03.md +++ b/second-edition/nostarch/chapter03.md @@ -325,10 +325,10 @@ Signed numbers are stored using two’s complement representation (if you’re unsure what this is, you can search for it online; an explanation is outside the scope of this book). -Each signed variant can store numbers from -(2n - 1) to 2n - 1 - 1 inclusive, +Each signed variant can store numbers from -2n - 1 to 2n - 1 - 1 inclusive, where `n` is the number of bits that variant uses. So an `i8` can store numbers -from -(27) to 27 - 1, which equals -128 to 127. Unsigned variants can store -numbers from 0 to 2n - 1, so a `u8` can store numbers from 0 to 28 - 1, which +from -27 to 27 - 1, which equals -128 to 127. Unsigned variants can store +numbers from 0 to 2n - 1, so a `u8` can store numbers from 0 to 28 - 1, which equals 0 to 255. Additionally, the `isize` and `usize` types depend on the kind of computer your