From 0b0735c260dcea619e77693adf8b0c164dc4352f Mon Sep 17 00:00:00 2001 From: Maia Everett Date: Sat, 30 Aug 2025 20:35:32 +0300 Subject: [PATCH] byte: Explain the purpose of the byte type --- src/niche_numerics/byte.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/niche_numerics/byte.md b/src/niche_numerics/byte.md index e1161e9f..2d2ea01c 100644 --- a/src/niche_numerics/byte.md +++ b/src/niche_numerics/byte.md @@ -51,7 +51,7 @@ IO.println(b); ~} ``` -You will most often want a `byte` when you are trying to save space in memory. +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`. ```java,no_run // This array of 4 bytes