Skip to content

Commit 83b3d92

Browse files
authored
concepts/integers: Fix maximum value of u8 to 255 (#1653)
1 parent e84875f commit 83b3d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concepts/integers/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Integers all have a **bit width**, which is just the number of bits making up th
99
the maximum value which can be represented by that integer type.
1010

1111
For example, one of the most common integer types is a `u8`: an unsigned, 8-bit integer. You may
12-
recognize this type as a single byte. This has a minimum value of 0 and a maximum value of 256.
12+
recognize this type as a single byte. This has a minimum value of 0 and a maximum value of 255.
1313

1414
Rust has 12 integer primitive types, broken out by bit width and signedness:
1515

0 commit comments

Comments
 (0)