Skip to content

Commit

Permalink
Merge pull request #865 from takmar/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
rafaelfranca authored Feb 26, 2024
2 parents f1ba900 + 812acc8 commit 446a6bd
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 446a6bd

Please sign in to comment.