diff options
Diffstat (limited to 'formatter')
-rw-r--r-- | formatter/formatter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go index 96e19d1..5eae8b7 100644 --- a/formatter/formatter.go +++ b/formatter/formatter.go @@ -95,8 +95,8 @@ func trimLeftSpaces(s string) string { } func trimRightSpaces(s string) string { + i := len(s) - 1 rs := []rune(s) - i := len(rs) - 1 for i >= 0 && unicode.IsSpace(rs[i]) { i-- } |