Skip to content

Commit

Permalink
Merge pull request #117 from biow0lf/patch-1
Browse files Browse the repository at this point in the history
Fix examples highlight in README.md
  • Loading branch information
piotrmurach committed Nov 13, 2019
2 parents 64e28ab + f4ad827 commit d9af5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ end

The **TTY::Prompt** comes with built-in validations for `:email` and you can use them directly like so:

```prompt
```ruby
prompt.ask('What is your email?') { |q| q.validate :email }
```

Expand Down Expand Up @@ -1218,7 +1218,7 @@ end

In order to collect _mutliple values_ for a given key in a loop, chain `values` onto the `key` desired:

```rb
```ruby
result = prompt.collect do
key(:name).ask('Name?')

Expand Down

0 comments on commit d9af5a6

Please sign in to comment.