commit acd9d5f45c8bc3bb6a9e4b86144c201b0575f751
parent 5872ff742edb773beccd2856d92c5bf1b1327b38
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 26 Mar 2021 10:07:48 -0400
endian: fix typo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/endian/little.ha b/endian/little.ha
@@ -20,7 +20,7 @@ export fn legetu32(buf: []u8) u32 = {
(buf[0] << 0);
};
-// Writes a u32 into a buffer in big-endian order.
+// Writes a u32 into a buffer in little-endian order.
export fn leputu32(buf: []u8, in: u32) void = {
buf[0] = (in): u8;
buf[1] = (in >> 8): u8;
@@ -28,7 +28,7 @@ export fn leputu32(buf: []u8, in: u32) void = {
buf[3] = (in >> 24): u8;
};
-// Writes a u64 into a buffer in big-endian order.
+// Writes a u64 into a buffer in little-endian order.
export fn leputu64(buf: []u8, in: u64) void = {
buf[0] = (in >> 0): u8;
buf[1] = (in >> 8): u8;