Ticket #89 (new defect)
Opened 13 months ago
Lesson 5C - Bringing it All Together - equal should be ==
| Reported by: | clarinette | Owned by: | |
|---|---|---|---|
| Keywords: | Cc: |
Description
In the "bringing it all together" part of lesson 5C
The code reads:
vid = main_menu()
if vid.equal?("Download a New Video")
new_vid = download_video_popup()
Equal tests for the same object, we want same value (ie: eql or ==)
Need to change to:
vid = main_menu() if vid == "Download a New Video" new_vid = download_video_popup()
I corrected the wiki... :-) Thanks for making me dig into ruby doc. I'm a newby and I feel very proud for finding both the bug and the correction :-))) HH is the best thing since chocolate
Note: See
TracTickets for help on using
tickets.
