Browse Source

Better name

Piotr Czajkowski 3 years ago
parent
commit
48f235bd2c
1 changed files with 2 additions and 2 deletions
  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)))
 }