Skip to content

Commit

Permalink
utils: reduce diff to external utils package (#2206)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonklingele committed Nov 12, 2022
1 parent 938e0fc commit 5cac575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/bytes.go
Expand Up @@ -4,15 +4,15 @@

package utils

// ToLowerBytes converts ascii slice to lower-case
// ToLowerBytes converts ascii slice to lower-case in-place.
func ToLowerBytes(b []byte) []byte {
for i := 0; i < len(b); i++ {
b[i] = toLowerTable[b[i]]
}
return b
}

// ToUpperBytes converts ascii slice to upper-case
// ToUpperBytes converts ascii slice to upper-case in-place.
func ToUpperBytes(b []byte) []byte {
for i := 0; i < len(b); i++ {
b[i] = toUpperTable[b[i]]
Expand Down

0 comments on commit 5cac575

Please sign in to comment.