diff options
author | Fabien Foerster <fabienfoerster@gmail.com> | 2016-01-09 16:14:58 +0100 |
---|---|---|
committer | Fabien Foerster <fabienfoerster@gmail.com> | 2016-01-09 16:14:58 +0100 |
commit | 465e20c2b710c3445d1848bbf2c0aa84ebf7ceaf (patch) | |
tree | 61f42d50b1209c3791e8a85b55f2ab2dcdeaf525 | |
parent | 0b4ea46ac523cab2a5aa58cff51ab2b93747252d (diff) | |
download | highline-465e20c2b710c3445d1848bbf2c0aa84ebf7ceaf.tar.gz |
Fix menu example in README.md
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,8 +72,8 @@ cli.say("This should be <%= color('bold', BOLD) %>!") cli.choose do |menu| menu.prompt = "Please choose your favorite programming language? " - menu.choice(:ruby) { say("Good choice!") } - menu.choices(:python, :perl) { say("Not from around here, are you?") } + menu.choice(:ruby) { cli.say("Good choice!") } + menu.choices(:python, :perl) { cli.say("Not from around here, are you?") } end ``` |