Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc: pressing ctrl-c doesn't return -1 in a RadioMenu [ci skip] #36114

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/REPL/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ options = ["apple", "orange", "grape", "strawberry",

The RadioMenu allows the user to select one option from the list. The `request`
function displays the interactive menu and returns the index of the selected
choice. If a user presses 'q' or `ctrl-c`, `request` will return a `-1`.
choice. If a user presses 'q' `request` will return a `-1`.


```julia
Expand Down Expand Up @@ -510,7 +510,7 @@ The MultiSelectMenu allows users to select many choices from a list.
menu = MultiSelectMenu(options)

# `request` returns a `Set` of selected indices
# if the menu us canceled (ctrl-c or q), return an empty set
# if the menu is canceled by pressing 'q' return an empty set
choices = request("Select the fruits you like:", menu)

if length(choices) > 0
Expand Down