1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix typos inspired by r40825

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2013-05-19 14:50:47 +00:00
parent 66795c4774
commit c54733e120
12 changed files with 22 additions and 22 deletions

View file

@ -496,7 +496,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2005-04-08 ocean <ocean@ruby-lang.org> 2005-04-08 ocean <ocean@ruby-lang.org>
* sample/tkextlib/treectrl/random.rb: fixed typo. (drop node outside of * sample/tkextlib/treectrl/random.rb: fixed typo. (drop node outside of
widget, or reenter widget while draggging) widget, or reenter widget while dragging)
2005-04-08 ocean <ocean@ruby-lang.org> 2005-04-08 ocean <ocean@ruby-lang.org>

View file

@ -15,7 +15,7 @@ verbose = false
def help_msg def help_msg
print "Usage: #{$0} [-l] [-v] [-h] [--] [dir]\n" print "Usage: #{$0} [-l] [-v] [-h] [--] [dir]\n"
print "\tIf dir is omitted, check the directry that this command exists.\n" print "\tIf dir is omitted, check the directory that this command exists.\n"
print "\tAvailable options are \n" print "\tAvailable options are \n"
print "\t -l : Add dir to $LOAD_PATH\n" print "\t -l : Add dir to $LOAD_PATH\n"
print "\t (If dir == '<parent>/tkextlib', add <parent> also.)\n" print "\t (If dir == '<parent>/tkextlib', add <parent> also.)\n"

View file

@ -23,7 +23,7 @@ TkButton.new(page2CS, :text=>'Button Two').pack
# Select the first page of the tabnotebook. # Select the first page of the tabnotebook.
nb.select(0) nb.select(0)
# Create the scrollbar and associate teh scrollbar # Create the scrollbar and associate the scrollbar
# and the notebook together, then pack the scrollbar # and the notebook together, then pack the scrollbar
nb.scrollbar(TkScrollbar.new).pack(:fill=>:y, :expand=>true, :pady=>10) nb.scrollbar(TkScrollbar.new).pack(:fill=>:y, :expand=>true, :pady=>10)

View file

@ -23,7 +23,7 @@ TkButton.new(page2CS, :text=>'Button Two').pack
# Select the first page of the tabnotebook. # Select the first page of the tabnotebook.
nb.select(0) nb.select(0)
# Create the scrollbar and associate teh scrollbar # Create the scrollbar and associate the scrollbar
# and the notebook together, then pack the scrollbar # and the notebook together, then pack the scrollbar
nb.xscrollbar(TkScrollbar.new).pack(:fill=>:x, :expand=>true, :padx=>10) nb.xscrollbar(TkScrollbar.new).pack(:fill=>:x, :expand=>true, :padx=>10)

View file

@ -356,7 +356,7 @@ class GetoptLong
# #
def terminate def terminate
return nil if @status == STATUS_TERMINATED return nil if @status == STATUS_TERMINATED
raise RuntimeError, "an error has occured" if @error != nil raise RuntimeError, "an error has occurred" if @error != nil
@status = STATUS_TERMINATED @status = STATUS_TERMINATED
@non_option_arguments.reverse_each do |argument| @non_option_arguments.reverse_each do |argument|

View file

@ -889,7 +889,7 @@ module Net
def initialize(sock) def initialize(sock)
@socket = sock @socket = sock
@error_occured = false @error_occurred = false
res = check_response(critical { recv_response() }) res = check_response(critical { recv_response() })
@apop_stamp = res.slice(/<[!-~]+@[!-~]+>/) @apop_stamp = res.slice(/<[!-~]+@[!-~]+>/)
end end
@ -1007,11 +1007,11 @@ module Net
end end
def critical def critical
return '+OK dummy ok response' if @error_occured return '+OK dummy ok response' if @error_occurred
begin begin
return yield() return yield()
rescue Exception rescue Exception
@error_occured = true @error_occurred = true
raise raise
end end
end end

View file

@ -215,7 +215,7 @@ module Net
@started = false @started = false
@open_timeout = 30 @open_timeout = 30
@read_timeout = 60 @read_timeout = 60
@error_occured = false @error_occurred = false
@debug_output = nil @debug_output = nil
@tls = false @tls = false
@starttls = false @starttls = false
@ -605,17 +605,17 @@ module Net
rescue SMTPError rescue SMTPError
if @esmtp if @esmtp
@esmtp = false @esmtp = false
@error_occured = false @error_occurred = false
retry retry
end end
raise raise
end end
def do_finish def do_finish
quit if @socket and not @socket.closed? and not @error_occured quit if @socket and not @socket.closed? and not @error_occurred
ensure ensure
@started = false @started = false
@error_occured = false @error_occurred = false
@socket.close if @socket and not @socket.closed? @socket.close if @socket and not @socket.closed?
@socket = nil @socket = nil
end end
@ -942,11 +942,11 @@ module Net
end end
def critical def critical
return '200 dummy reply code' if @error_occured return '200 dummy reply code' if @error_occurred
begin begin
return yield() return yield()
rescue Exception rescue Exception
@error_occured = true @error_occurred = true
raise raise
end end
end end

View file

@ -253,7 +253,7 @@ def next_token # :nodoc:
[:STRINGLINE, line] [:STRINGLINE, line]
end end
else else
raise "[BUG] parsing error may occured." raise "[BUG] parsing error may occurred."
end end
end end

View file

@ -359,7 +359,7 @@ module WEBrick
begin begin
body{|chunk| } # read remaining body body{|chunk| } # read remaining body
rescue HTTPStatus::Error => ex rescue HTTPStatus::Error => ex
@logger.error("HTTPRequest#fixup: #{ex.class} occured.") @logger.error("HTTPRequest#fixup: #{ex.class} occurred.")
@keep_alive = false @keep_alive = false
rescue => ex rescue => ex
@logger.error(ex) @logger.error(ex)

View file

@ -430,7 +430,7 @@ class CGIServer < BasicServer
</head> </head>
<body> <body>
<h1>#{err}</h1> <h1>#{err}</h1>
<p>Unexpected error occured while processing XML-RPC request!</p> <p>Unexpected error occurred while processing XML-RPC request!</p>
</body> </body>
</html> </html>
MSGEND MSGEND
@ -505,7 +505,7 @@ class ModRubyServer < BasicServer
</head> </head>
<body> <body>
<h1>#{err}</h1> <h1>#{err}</h1>
<p>Unexpected error occured while processing XML-RPC request!</p> <p>Unexpected error occurred while processing XML-RPC request!</p>
</body> </body>
</html> </html>
MSGEND MSGEND

View file

@ -3312,7 +3312,7 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
int err, state = 0; int err, state = 0;
int ep[2]; int ep[2];
VALUE exc = Qnil; VALUE exc = Qnil;
int error_occured; int error_occurred;
if (status) *status = 0; if (status) *status = 0;
@ -3358,8 +3358,8 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
#endif #endif
} }
close(ep[1]); close(ep[1]);
error_occured = recv_child_error(ep[0], &state, &exc, &err, errmsg, errmsg_buflen, chfunc_is_async_signal_safe); error_occurred = recv_child_error(ep[0], &state, &exc, &err, errmsg, errmsg_buflen, chfunc_is_async_signal_safe);
if (state || error_occured) { if (state || error_occurred) {
if (status) { if (status) {
rb_protect(proc_syswait, (VALUE)pid, status); rb_protect(proc_syswait, (VALUE)pid, status);
if (state) *status = state; if (state) *status = state;

View file

@ -41,6 +41,6 @@ end
status = MyApp.new(1, 2, 3).start status = MyApp.new(1, 2, 3).start
if status != 0 if status != 0
puts 'Some error(s) occured.' puts 'Some error(s) occurred.'
puts 'See "app.log".' puts 'See "app.log".'
end end