stop lying

This commit is contained in:
Ryan Fitzgerald 2011-10-22 01:18:04 -07:00
parent 6a0aff7e19
commit eaf4705a84
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ class Pry
# @raise [CommandError] Raises when the method can't be found or `pry-doc` isn't installed.
def pry_doc_info
if Pry.config.has_pry_doc
Pry::MethodInfo.info_for(@method) or raise CommandError, "Cannot find C method: #{name}."
Pry::MethodInfo.info_for(@method) or raise CommandError, "Cannot locate this method: #{name}."
else
raise CommandError, "Cannot locate this method: #{name}. Try `gem install pry-doc` to get access to Ruby Core documentation."
end