aboutsummaryrefslogtreecommitdiff
path: root/lib/strings/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strings/string.go')
-rw-r--r--lib/strings/string.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strings/string.go b/lib/strings/string.go
index 1a8cb44e..ee271c35 100644
--- a/lib/strings/string.go
+++ b/lib/strings/string.go
@@ -128,8 +128,8 @@ func Reverse(input string) string {
y := len(r) - 1
for x < len(r)/2 {
r[x], r[y] = r[y], r[x]
- x += 1
- y -= 1
+ x++
+ y--
}
return string(r)
}