Browse Source

Correcting Vowels-Index subject

fixDevirged
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 ### 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. 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,i ,e ,u o] - vowels: a, e, i, o, u]
### Expected function ### Expected function
@ -13,6 +13,7 @@ func VowelsIndex(str string) []int {
``` ```
### Usage ### Usage
Here is a possible program to test your function
```go ```go
package main package main
@ -30,7 +31,6 @@ func main() {
``` ```
And its output : And its output :
```console ```console
$ go run . | cat -e $ go run . | cat -e
1$ 1$
4$ 4$

Loading…
Cancel
Save