Piotr Czajkowski %!s(int64=3) %!d(string=hai) anos
pai
achega
48f235bd2c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app.go

+ 2 - 2
app.go

@@ -22,7 +22,7 @@ func encodeWord(word []rune, wordLength int) {
 	return
 }
 
-func processText(text []rune) (string, []string) {
+func encodeText(text []rune) (string, []string) {
 	var currentWord []rune
 	var newString []rune
 	var encodedWords []string
@@ -58,5 +58,5 @@ func processText(text []rune) (string, []string) {
 func main() {
 	test := `This is a long looong test sentence,
 with some big (biiiiig) words!`
-	fmt.Println(processText([]rune(test)))
+	fmt.Println(encodeText([]rune(test)))
 }