Skip to content

Commit 6424efd

Browse files
committed
placate lint
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 887c0f1 commit 6424efd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/util/truncate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package util
66

77
import "unicode/utf8"
88

9+
// SplitStringAtByteN splits a string at byte n accounting for rune boundaries. (Combining characters are not accounted for.)
910
func SplitStringAtByteN(input string, n int) (left, right string) {
1011
if len(input) <= n {
1112
left = input

0 commit comments

Comments
 (0)