Skip to content

Conversation

@chrisfraser
Copy link

Moved break to within the if statement allowing fall through to default.

Currently running the example for the string "Why" will only print "Not a vowel" for two out of the three lines. 

0: W is not a vowel
1: h is not a vowel

'y' falls through the cracks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant