Browse Source

Correcting Vowels-Index subject

pull/1185/head
zainabdnaya 2 years ago
parent
commit
15f6559845
  1. 8
      subjects/vowels-index/README.md

8
subjects/vowels-index/README.md

@ -1,9 +1,9 @@
# vowels-index
## vowels-index
### Instructions
- Write a function that takes one argument of type string and returns an array of intergers containing the index of the vowels in the string.
- vowels : [a,i ,e ,u o]
Write a function that takes one argument of type string and returns an array of integers containing the index of the vowels in the string.
- vowels: a, e, i, o, u]
### Expected function
@ -13,6 +13,7 @@ func VowelsIndex(str string) []int {
```
### Usage
Here is a possible program to test your function
```go
package main
@ -30,7 +31,6 @@ func main() {
```
And its output :
```console
$ go run . | cat -e
1$
4$

Loading…
Cancel
Save