diff --git a/ch03-02-data-types.html b/ch03-02-data-types.html index 4effe23a3..6a8b773fb 100644 --- a/ch03-02-data-types.html +++ b/ch03-02-data-types.html @@ -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).

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 from -(27) to 27, which equals -128 +i8 can store 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 from 0 to 28 - 1, which equals 0 to 255.

Finally, the isize and usize types depend on the kind of computer your diff --git a/print.html b/print.html index bdb71f1da..b68099b62 100644 --- a/print.html +++ b/print.html @@ -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).

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 from -(27) to 27, which equals -128 +i8 can store 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 from 0 to 28 - 1, which equals 0 to 255.

Finally, the isize and usize types depend on the kind of computer your