Skip to content

Commit 45262a1

Browse files
committed
added fmt
1 parent 0074105 commit 45262a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reverse.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Package stringutil contains utility functions for working with strings.
22
package stringUtil
33

4-
4+
import "fmt"
55

66
// Reverse returns its argument string reversed rune-wise left to right.
7-
func Reverse(s string) string {
7+
func Reverse(s string) string {
88
r := []rune(s)
99
for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
1010
r[i], r[j] = r[j], r[i]
1111
}
12+
fmt.Println(string(r))
1213
return string(r)
13-
}
14+
}

0 commit comments

Comments
 (0)