Browse Source

Merge pull request #326 from 01-edu/strlen_readme

correction of strlen readme
content-update
augusto-mantilla 5 years ago committed by GitHub
parent
commit
a6030de8fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      subjects/strlen.en.md
  2. 5
      subjects/strlen.fr.md

5
subjects/strlen.en.md

@ -2,7 +2,7 @@
### 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
@ -21,12 +21,11 @@ package main
import (
"fmt"
piscine ".."
)
func main() {
str := "Hello World!"
nb := piscine.StrLen(str)
nb := StrLen(str)
fmt.Println(nb)
}
```

5
subjects/strlen.fr.md

@ -2,7 +2,7 @@
### 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 `runes` d'une `string` et qui retourne le nombre trouvé.
### Fonction attendue
@ -21,12 +21,11 @@ package main
import (
"fmt"
piscine ".."
)
func main() {
str := "Hello World!"
nb := piscine.StrLen(str)
nb := StrLen(str)
fmt.Println(nb)
}
```

Loading…
Cancel
Save