Skip to content

Commit c94e213

Browse files
authored
Merge pull request #113 from Maia-Everett/byte
byte: Explain the purpose of the byte type
2 parents 1749774 + 56d3df0 commit c94e213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/niche_numerics/byte.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ IO.println(b);
5151
~}
5252
```
5353

54-
You will most often want a `byte` when you are trying to save space in memory.
54+
You will most often use the `byte` type when working with data as sequences of bytes, such as reading from and writing to binary files. Representing binary data as arrays of `byte` values is more memory-efficient than representing each individual byte as, say, an `int`.
5555

5656
```java,no_run
5757
// This array of 4 bytes

0 commit comments

Comments
 (0)