Fix two typos

My typo checker :-) found the bugs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2017-03-29 11:49:39 +00:00
parent 31a755e4f2
commit e294fbaf5f
2 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ class Shell
# include run file. # include run file.
# #
def self.run_config def self.run_config
rc = "~/.rb_shell"
begin begin
load File.expand_path("~/.rb_shell") if ENV.key?("HOME") load File.expand_path(rc) if ENV.key?("HOME")
rescue LoadError, Errno::ENOENT rescue LoadError, Errno::ENOENT
rescue rescue
print "load error: #{rc}\n" print "load error: #{rc}\n"

View File

@ -56,7 +56,7 @@ class Shell #:nodoc:
self.input = src self.input = src
self self
else else
Shell.Fail Error::CantApplyMethod, "<", to.class Shell.Fail Error::CantApplyMethod, "<", src.class
end end
end end