Rename strings to words in 19-exercises-03

This commit is contained in:
Firas Khalil Khana
2021-05-01 13:21:57 +03:00
committed by İnanç Gümüş
parent a5fc35f0d5
commit d510b0481c
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ package main
// ---------------------------------------------------------
func main() {
strings := []string{
words := []string{
"cool",
"güzel",
"jīntiān",
@ -26,7 +26,7 @@ func main() {
"read 🤓",
}
_ = strings
_ = words
// Print the byte and rune length of the strings
// Hint: Use len and utf8.RuneCountInString

View File

@ -14,7 +14,7 @@ import (
)
func main() {
strings := []string{
words := []string{
"cool",
"güzel",
"jīntiān",
@ -22,7 +22,7 @@ func main() {
"read 🤓",
}
for _, s := range strings {
for _, s := range words {
fmt.Printf("%q\n", s)
// Print the byte and rune length of the strings