Skip to content

Commit 899593a

Browse files
committed
docs: typo
1 parent c5f743b commit 899593a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansi/truncate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func TruncateLeft(s string, n int, prefix string) string {
200200
return buf.String()
201201
}
202202

203-
// ToCharRange takes a range in byte positions and converts them to chat
203+
// ToCharRange takes start and stop byte positions and converts them to char
204204
// positions.
205205
// You can use this with [Truncate], [TruncateLeft], and [Cut].
206206
func ToCharRange(str string, byteStart, byteStop int) (charStart, charStop int) {

0 commit comments

Comments
 (0)