From 68160693fbd7ede03b5c43d40f0b1b690bf2586b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 24 Mar 2025 22:31:28 +0800 Subject: Use range instead of normal for loop --- bitwise.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitwise.go b/bitwise.go index 689e667..b180400 100644 --- a/bitwise.go +++ b/bitwise.go @@ -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 } -- cgit v1.2.3