diff --git a/x/net/bytealg.go b/x/net/bytealg.go index 9c9ac68..4c6f008 100644 --- a/x/net/bytealg.go +++ b/x/net/bytealg.go @@ -10,10 +10,10 @@ func LastIndexByteString(s string, c byte) int { } func IndexByteString(s string, c byte) int { - for i := 0; i < len(s); i++ { - if s[i] == c { - return i - } - } - return -1 -} \ No newline at end of file + for i := 0; i < len(s); i++ { + if s[i] == c { + return i + } + } + return -1 +}