Skip to content

Commit

Permalink
Merge 5c327b9 into 65187af
Browse files Browse the repository at this point in the history
  • Loading branch information
2called-chaos committed Mar 22, 2020
2 parents 65187af + 5c327b9 commit 0fd1c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ prompt.slider('Volume', max: 100, step: 5, default: 75)
You can also change the default slider formatting using the `:format`. The value must contain the `:slider` token to show current value and any `sprintf` compatible flag for number display, in our case `%d`:

```ruby
prompt.slider('Volume', max: 100, step: 5, default: 75, format: "|:slider| %d%")
prompt.slider('Volume', max: 100, step: 5, default: 75, format: "|:slider| %d%%")
# =>
# Volume |───────────────●──────| 75%
# (Use arrow keys, press Enter to select)
Expand Down

0 comments on commit 0fd1c12

Please sign in to comment.