Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
takmar committed Jan 6, 2024
1 parent f1ba900 commit 812acc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/thor/shell/basic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ def say_status(status, message, log_status = true)
stdout.flush
end

# Make a question the to user and returns true if the user replies "y" or
# Asks the user a question and returns true if the user replies "y" or
# "yes".
#
def yes?(statement, color = nil)
!!(ask(statement, color, add_to_history: false) =~ is?(:yes))
end

# Make a question the to user and returns true if the user replies "n" or
# Asks the user a question and returns true if the user replies "n" or
# "no".
#
def no?(statement, color = nil)
Expand Down

0 comments on commit 812acc8

Please sign in to comment.