TheOdinProject / ruby-exercises

MIT License
219 stars 1.06k forks source link

find_language_facts exercise: use dig method #86

Closed c-auri closed 1 year ago

c-auri commented 1 year ago

Because

The current solution to the find_language_facts exercise raises a NoMethodError when trying to access a language_name that is not listed in the languages hash. The lesson mentions the dig method for that specific purpose, but this is never tested in the exercises.

This PR

Issue

I opened no issue as I figured this is a small enough change to be discussed directly in a PR.

Additional Information

The main branch is updated in #87

Pull Request Requirements