Rename strings to words in 19-exercises-03
This commit is contained in:
committed by
İnanç Gümüş
parent
a5fc35f0d5
commit
d510b0481c
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user