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() {
|
func main() {
|
||||||
strings := []string{
|
words := []string{
|
||||||
"cool",
|
"cool",
|
||||||
"güzel",
|
"güzel",
|
||||||
"jīntiān",
|
"jīntiān",
|
||||||
@ -26,7 +26,7 @@ func main() {
|
|||||||
"read 🤓",
|
"read 🤓",
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = strings
|
_ = words
|
||||||
|
|
||||||
// Print the byte and rune length of the strings
|
// Print the byte and rune length of the strings
|
||||||
// Hint: Use len and utf8.RuneCountInString
|
// Hint: Use len and utf8.RuneCountInString
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
strings := []string{
|
words := []string{
|
||||||
"cool",
|
"cool",
|
||||||
"güzel",
|
"güzel",
|
||||||
"jīntiān",
|
"jīntiān",
|
||||||
@ -22,7 +22,7 @@ func main() {
|
|||||||
"read 🤓",
|
"read 🤓",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, s := range strings {
|
for _, s := range words {
|
||||||
fmt.Printf("%q\n", s)
|
fmt.Printf("%q\n", s)
|
||||||
|
|
||||||
// Print the byte and rune length of the strings
|
// Print the byte and rune length of the strings
|
||||||
|
Reference in New Issue
Block a user