Skip to content

Commit

Permalink
neat(x/net/http): Go fmt style
Browse files Browse the repository at this point in the history
Signed-off-by: hackerchai <[email protected]>
  • Loading branch information
hackerchai committed Sep 20, 2024
1 parent 6d8087a commit 0382274
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x/net/bytealg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
for i := 0; i < len(s); i++ {
if s[i] == c {
return i
}
}
return -1
}

0 comments on commit 0382274

Please sign in to comment.