Skip to content

Commit

Permalink
Fix examples for "case"
Browse files Browse the repository at this point in the history
  • Loading branch information
restorer committed Sep 16, 2011
1 parent 527224c commit 00032bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -47,8 +47,10 @@ community.
```Ruby
case
when song.name == "Misty"
puts "Not again!" when song.duration > 120
puts "Too long!" when Time.now.hour > 21
puts "Not again!"
when song.duration > 120
puts "Too long!"
when Time.now.hour > 21
puts "It's too late"
else
song.play
Expand Down

0 comments on commit 00032bf

Please sign in to comment.