Skip to content

Commit c54733e

Browse files
committed
fix typos inspired by r40825
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 66795c4 commit c54733e

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

ext/tk/ChangeLog.tkextlib

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
496496
2005-04-08 ocean <ocean@ruby-lang.org>
497497

498498
* sample/tkextlib/treectrl/random.rb: fixed typo. (drop node outside of
499-
widget, or reenter widget while draggging)
499+
widget, or reenter widget while dragging)
500500

501501
2005-04-08 ocean <ocean@ruby-lang.org>
502502

ext/tk/lib/tkextlib/pkg_checker.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

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

ext/tk/sample/tkextlib/iwidgets/sample/notebook.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Select the first page of the tabnotebook.
2424
nb.select(0)
2525

26-
# Create the scrollbar and associate teh scrollbar
26+
# Create the scrollbar and associate the scrollbar
2727
# and the notebook together, then pack the scrollbar
2828
nb.scrollbar(TkScrollbar.new).pack(:fill=>:y, :expand=>true, :pady=>10)
2929

ext/tk/sample/tkextlib/iwidgets/sample/notebook2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Select the first page of the tabnotebook.
2424
nb.select(0)
2525

26-
# Create the scrollbar and associate teh scrollbar
26+
# Create the scrollbar and associate the scrollbar
2727
# and the notebook together, then pack the scrollbar
2828
nb.xscrollbar(TkScrollbar.new).pack(:fill=>:x, :expand=>true, :padx=>10)
2929

lib/getoptlong.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def set_options(*arguments)
356356
#
357357
def terminate
358358
return nil if @status == STATUS_TERMINATED
359-
raise RuntimeError, "an error has occured" if @error != nil
359+
raise RuntimeError, "an error has occurred" if @error != nil
360360

361361
@status = STATUS_TERMINATED
362362
@non_option_arguments.reverse_each do |argument|

lib/net/pop.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ class POP3Command #:nodoc: internal use only
889889

890890
def initialize(sock)
891891
@socket = sock
892-
@error_occured = false
892+
@error_occurred = false
893893
res = check_response(critical { recv_response() })
894894
@apop_stamp = res.slice(/<[!-~]+@[!-~]+>/)
895895
end
@@ -1007,11 +1007,11 @@ def check_response_auth(res)
10071007
end
10081008

10091009
def critical
1010-
return '+OK dummy ok response' if @error_occured
1010+
return '+OK dummy ok response' if @error_occurred
10111011
begin
10121012
return yield()
10131013
rescue Exception
1014-
@error_occured = true
1014+
@error_occurred = true
10151015
raise
10161016
end
10171017
end

lib/net/smtp.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def initialize(address, port = nil)
215215
@started = false
216216
@open_timeout = 30
217217
@read_timeout = 60
218-
@error_occured = false
218+
@error_occurred = false
219219
@debug_output = nil
220220
@tls = false
221221
@starttls = false
@@ -605,17 +605,17 @@ def do_helo(helo_domain)
605605
rescue SMTPError
606606
if @esmtp
607607
@esmtp = false
608-
@error_occured = false
608+
@error_occurred = false
609609
retry
610610
end
611611
raise
612612
end
613613

614614
def do_finish
615-
quit if @socket and not @socket.closed? and not @error_occured
615+
quit if @socket and not @socket.closed? and not @error_occurred
616616
ensure
617617
@started = false
618-
@error_occured = false
618+
@error_occurred = false
619619
@socket.close if @socket and not @socket.closed?
620620
@socket = nil
621621
end
@@ -942,11 +942,11 @@ def recv_response
942942
end
943943

944944
def critical
945-
return '200 dummy reply code' if @error_occured
945+
return '200 dummy reply code' if @error_occurred
946946
begin
947947
return yield()
948948
rescue Exception
949-
@error_occured = true
949+
@error_occurred = true
950950
raise
951951
end
952952
end

lib/rdoc/rd/block_parser.rb

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/webrick/httprequest.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def fixup() # :nodoc:
359359
begin
360360
body{|chunk| } # read remaining body
361361
rescue HTTPStatus::Error => ex
362-
@logger.error("HTTPRequest#fixup: #{ex.class} occured.")
362+
@logger.error("HTTPRequest#fixup: #{ex.class} occurred.")
363363
@keep_alive = false
364364
rescue => ex
365365
@logger.error(ex)

lib/xmlrpc/server.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def http_error(status, message)
430430
</head>
431431
<body>
432432
<h1>#{err}</h1>
433-
<p>Unexpected error occured while processing XML-RPC request!</p>
433+
<p>Unexpected error occurred while processing XML-RPC request!</p>
434434
</body>
435435
</html>
436436
MSGEND
@@ -505,7 +505,7 @@ def http_error(status, message)
505505
</head>
506506
<body>
507507
<h1>#{err}</h1>
508-
<p>Unexpected error occured while processing XML-RPC request!</p>
508+
<p>Unexpected error occurred while processing XML-RPC request!</p>
509509
</body>
510510
</html>
511511
MSGEND

process.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3312,7 +3312,7 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
33123312
int err, state = 0;
33133313
int ep[2];
33143314
VALUE exc = Qnil;
3315-
int error_occured;
3315+
int error_occurred;
33163316

33173317
if (status) *status = 0;
33183318

@@ -3358,8 +3358,8 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
33583358
#endif
33593359
}
33603360
close(ep[1]);
3361-
error_occured = recv_child_error(ep[0], &state, &exc, &err, errmsg, errmsg_buflen, chfunc_is_async_signal_safe);
3362-
if (state || error_occured) {
3361+
error_occurred = recv_child_error(ep[0], &state, &exc, &err, errmsg, errmsg_buflen, chfunc_is_async_signal_safe);
3362+
if (state || error_occurred) {
33633363
if (status) {
33643364
rb_protect(proc_syswait, (VALUE)pid, status);
33653365
if (state) *status = state;

sample/logger/app.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def foo(var)
4141
status = MyApp.new(1, 2, 3).start
4242

4343
if status != 0
44-
puts 'Some error(s) occured.'
44+
puts 'Some error(s) occurred.'
4545
puts 'See "app.log".'
4646
end

0 commit comments

Comments
 (0)