From 15f6559845a87e46969a76842957d72f60f0f0b0 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Wed, 15 Jun 2022 13:07:10 +0100 Subject: [PATCH] Correcting Vowels-Index subject --- subjects/vowels-index/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/vowels-index/README.md b/subjects/vowels-index/README.md index 7b04c093..1672070c 100644 --- a/subjects/vowels-index/README.md +++ b/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$