Browse Source

correction of strlen readme

pull/326/head
MSilva95 5 years ago
parent
commit
44dad79e5a
  1. 5
      subjects/strlen.en.md
  2. 5
      subjects/strlen.fr.md

5
subjects/strlen.en.md

@ -2,7 +2,7 @@
### Instructions ### Instructions
- Write a function that counts the characters of a `string` and that returns that count. - Write a function that counts the runes of a `string` and that returns that count.
### Expected function ### Expected function
@ -21,12 +21,11 @@ package main
import ( import (
"fmt" "fmt"
piscine ".."
) )
func main() { func main() {
str := "Hello World!" str := "Hello World!"
nb := piscine.StrLen(str) nb := StrLen(str)
fmt.Println(nb) fmt.Println(nb)
} }
``` ```

5
subjects/strlen.fr.md

@ -2,7 +2,7 @@
### Instructions ### Instructions
- Écrire une fonction qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé. - Écrire une fonction qui compte le nombre de rune d'une `string` et qui retourne le nombre trouvé.
### Fonction attendue ### Fonction attendue
@ -21,12 +21,11 @@ package main
import ( import (
"fmt" "fmt"
piscine ".."
) )
func main() { func main() {
str := "Hello World!" str := "Hello World!"
nb := piscine.StrLen(str) nb := StrLen(str)
fmt.Println(nb) fmt.Println(nb)
} }
``` ```

Loading…
Cancel
Save