diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-24 22:31:28 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-24 22:31:28 +0800 |
commit | 68160693fbd7ede03b5c43d40f0b1b690bf2586b (patch) | |
tree | 0b66faa5dfd096b1e894aad141d387e79f536cf8 | |
parent | Use sha256.Size rather than 256 (diff) | |
download | powxy-68160693fbd7ede03b5c43d40f0b1b690bf2586b.tar.gz powxy-68160693fbd7ede03b5c43d40f0b1b690bf2586b.tar.zst powxy-68160693fbd7ede03b5c43d40f0b1b690bf2586b.zip |
Use range instead of normal for loop
-rw-r--r-- | bitwise.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ func validateBitZeros(bs []byte, n uint) bool { q := n / 8 r := n % 8 - for i := uint(0); i < q; i++ { + for i := range q { if bs[i] != 0 { return false } |