TheOdinProject / ruby-exercises

MIT License
219 stars 1.06k forks source link

Fix hint in 10_Enumerables exercise #74

Closed balamenon closed 1 year ago

balamenon commented 2 years ago

https://github.com/TheOdinProject/ruby-exercises/blob/01a37755b94df0ff689f8d9195cb7f510b0be91c/ruby_basics/10_basic_enumerables/exercises/basic_enumerable_exercises.rb#L8

Number and item have been interchanged here.

rlmoser99 commented 1 year ago

Can you expand more on why you think these words have been interchanged?

I believe it is correct, but I want to make sure I understand where you are coming from. The should be the index of the array + 1, so if the array was ['cookies', 'cake', 'ice cream'], it would output:

Guess #1 is cookies
Guess #2 is cake
Guess #3 is ice cream
ChargrilledChook commented 1 year ago

@balamenon This has been a while, so I'm going to close this. Happy to revist if you have any input on the above questions