Update data_structures/arrays/remove_vowels.rb

Co-authored-by: vzvu3k6k <vzvu3k6k@gmail.com>
This commit is contained in:
Jessica Kwok 2021-03-29 09:59:32 -07:00 committed by GitHub
parent 89a7af33e1
commit 5ed65199d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
#
def remove_vowels(s)
result_array = []
s.downcase
s.downcase!
start_array = s.split('')
start_array.each do |letter|
@ -71,4 +71,4 @@ print(remove_vowels(s))
# => "ltcdscmmntyfrcdrs"
s = 'aeiou'
print(remove_vowels(s))
# => ""
# => ""