Skip to content

Commit a78c0c0

Browse files
committed
Fix off by 1 error
1 parent b60c8f2 commit a78c0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ func min(a, b int) int {
896896
}
897897

898898
func removeChar(str string, index int) string {
899-
return substring(str, 0, index) + substring(str, index+1, len([]rune(str))-1)
899+
return substring(str, 0, index) + substring(str, index+1, len([]rune(str)))
900900
}
901901

902902
func substring(s string, start int, end int) string {

0 commit comments

Comments
 (0)