hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit ffb7ccc40a51d61349ff86ed266ef5aac355de05
parent 8b0405d1b5ad4b63d786de45b89a18a673ac306f
Author: Sebastian <sebastian@sebsite.pw>
Date:   Mon,  6 Nov 2023 23:28:03 -0500

all: style fix

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mbytes/trim.ha | 2+-
Mhash/siphash/siphash.ha | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bytes/trim.ha b/bytes/trim.ha @@ -13,7 +13,7 @@ export fn ltrim(in: []u8, trim: u8...) []u8 = { // the end of the input slice the bytes in the given list. export fn rtrim(in: []u8, trim: u8...) []u8 = { let i = len(in) - 1; - for (i < len(in) && contains(trim, in[i]); i-= 1) void; + for (i < len(in) && contains(trim, in[i]); i -= 1) void; return in[..i + 1]; }; diff --git a/hash/siphash/siphash.ha b/hash/siphash/siphash.ha @@ -101,7 +101,7 @@ export fn sum(h: *state) u64 = { h.v[0] ^= b; h.v[2] ^= 0xff; - for (let i = 0u8; i < h.d; i+= 1) { + for (let i = 0u8; i < h.d; i += 1) { round(&h); }; return h.v[0] ^ h.v[1] ^ h.v[2] ^ h.v[3];