Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrandon Keene
7,217 PointsTypo in Code Sample in teacher's notes.
Not a question, but rather a note:
In the second Code Sample segment in the teacher's notes for this video, there is a typo:
1 def ask(question, kind="string")
2 print question + " "
3 answer = gest.chomp
4 answer = answer.to_i if kind == "number"
5 return answer
6 end
As you can see, line 3 reads "answer = gest.chomp" but should read "gets.chomp" instead.