Skip to content

Commit da011c8

Browse files
committed
* array.c, enum.c, eval.c, file.c, io.c, numeric.c, object.c, prec.c,
process.c, re.c, string.c: typos in RDoc comments. [ruby-core:02783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b75df4e commit da011c8

File tree

12 files changed

+24
-19
lines changed

12 files changed

+24
-19
lines changed

ChangeLog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
Wed Apr 14 13:06:35 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
2+
3+
* array.c, enum.c, eval.c, file.c, io.c, numeric.c, object.c, prec.c,
4+
process.c, re.c, string.c: typos in RDoc comments. [ruby-core:02783]
5+
16
Wed Apr 14 11:03:22 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
27

38
* defines.h: include <net/socket.h> to get fd_set definition in BeOS.
49

510
Tue Apr 13 23:06:30 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
611

7-
* lib/rinda/rinda.rb: change pattern matching.
12+
* lib/rinda/rinda.rb: change pattern matching.
813
a === b -> a == b || a === b. [druby-ja:98]
914

1015
* test/rinda/test_rinda.rb: ditto.

array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ rb_ary_delete_if(ary)
20012001
* <i>self</i> with corresponding elements from each argument. This
20022002
* generates a sequence of <code>self#size</code> <em>n</em>-element
20032003
* arrays, where <em>n</em> is one more that the count of arguments. If
2004-
* the size of any arguemnt is less than <code>enumObj#size</code>,
2004+
* the size of any argument is less than <code>enumObj#size</code>,
20052005
* <code>nil</code> values are supplied. If a block given, it is
20062006
* invoked for each output array, otherwise an array of arrays is
20072007
* returned.
@@ -2343,7 +2343,7 @@ rb_ary_times(ary, times)
23432343
* comparing _obj_ with the first element of each contained array
23442344
* using obj.==.
23452345
* Returns the first contained array that matches (that
2346-
* is, the first assoc}iated array,
2346+
* is, the first associated array),
23472347
* or +nil+ if no match is found.
23482348
* See also Array.rassoc.
23492349
*

enum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ zip_i(val, memo)
864864
* <i>enum</i> with corresponding elements from each argument. This
865865
* generates a sequence of <code>enum#size</code> <em>n</em>-element
866866
* arrays, where <em>n</em> is one more that the count of arguments. If
867-
* the size of any arguemnt is less than <code>enum#size</code>,
867+
* the size of any argument is less than <code>enum#size</code>,
868868
* <code>nil</code> values are supplied. If a block given, it is
869869
* invoked for each output array, otherwise an array of arrays is
870870
* returned.

eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5257,7 +5257,7 @@ static int last_call_status;
52575257
* Invoked by Ruby when <i>obj</i> is sent a message it cannot handle.
52585258
* <i>symbol</i> is the symbol for the method called, and <i>args</i>
52595259
* are any arguments that were passed to it. By default, the interpreter
5260-
* raises an error when this method is called. However, it is possibe
5260+
* raises an error when this method is called. However, it is possible
52615261
* to override the method to provide more dynamic behavior.
52625262
* The example below creates
52635263
* a class <code>Roman</code>, which responds to methods with names

file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ rb_stat_ctime(self)
481481
* call-seq:
482482
* stat.inspect => string
483483
*
484-
* Produce a nicely formatted descriptin of <i>stat</i>.
484+
* Produce a nicely formatted description of <i>stat</i>.
485485
*
486486
* File.stat("/etc/passwd").inspect
487487
* #=> "#<File::Stat dev=0xe000005, ino=1078078, mode=0100644,

io.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ rb_io_gets(io)
13171317
* <i>sep_string</i>. A separator of <code>nil</code> reads the entire
13181318
* contents, and a zero-length separator reads the input a paragraph at
13191319
* a time (two successive newlines in the input separate paragraphs).
1320-
* The stream must be opened for reading or an <code>IOerror</code>
1320+
* The stream must be opened for reading or an <code>IOError</code>
13211321
* will be raised. The line read in will be returned and also assigned
13221322
* to <code>$_</code>. Returns <code>nil</code> if called at end of
13231323
* file.
@@ -1465,7 +1465,7 @@ rb_io_readline(argc, argv, io)
14651465
* <i>sep_string</i>. If <i>set_string</i> is <code>nil</code>, the
14661466
* rest of the stream is returned as a single record.
14671467
* The stream must be opened for reading or an
1468-
* <code>IOerror</code> will be raised.
1468+
* <code>IOError</code> will be raised.
14691469
*
14701470
* f = File.new("testfile")
14711471
* f.readlines[0] #=> "This is line one\n"
@@ -1502,7 +1502,7 @@ rb_io_readlines(argc, argv, io)
15021502
*
15031503
* Executes the block for every line in <em>ios</em>, where lines are
15041504
* separated by <i>sep_string</i>. <em>ios</em> must be opened for
1505-
* reading or an <code>IOerror</code> will be raised.
1505+
* reading or an <code>IOError</code> will be raised.
15061506
*
15071507
* f = File.new("testfile")
15081508
* f.each {|line| puts "#{f.lineno}: #{line}" }
@@ -1544,7 +1544,7 @@ rb_io_each_line(argc, argv, io)
15441544
*
15451545
* Calls the given block once for each byte (0..255) in <em>ios</em>,
15461546
* passing the byte as an argument. The stream must be opened for
1547-
* reading or an <code>IOerror</code> will be raised.
1547+
* reading or an <code>IOError</code> will be raised.
15481548
*
15491549
* f = File.new("testfile")
15501550
* checksum = 0

numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ flodivmod(x, y, divp, modp)
682682
* flt % other => float
683683
* flt.modulo(other) => float
684684
*
685-
* Return the modulo after dividion of <code>flt</code> by <code>other</code>.
685+
* Return the modulo after division of <code>flt</code> by <code>other</code>.
686686
*
687687
* 6543.21.modulo(137) #=> 104.21
688688
* 6543.21.modulo(137.24) #=> 92.9299999999996

object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static ID id_eq, id_eql, id_inspect, id_init_copy;
3737
* call-seq:
3838
* obj === other => true or false
3939
*
40-
* Case Equality---For class <code>Object</code>, effectivelt the same
40+
* Case Equality---For class <code>Object</code>, effectively the same
4141
* as calling <code>#==</code>, but typically overridden by descendents
4242
* to provide meaningful semantics in <code>case</code> statements.
4343
*/
@@ -1164,7 +1164,7 @@ sym_to_s(sym)
11641164
* call-seq:
11651165
* sym.to_sym => sym
11661166
*
1167-
* In general, <code>to_sym</code> returns the <code>Symbol</code> correspopnding
1167+
* In general, <code>to_sym</code> returns the <code>Symbol</code> corresponding
11681168
* to an object. As <i>sym</i> is already a symbol, <code>self</code> is returned
11691169
* in this case.
11701170
*/

prec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ prec_included(module, include)
123123
* Precision is a mixin for concrete numeric classes with
124124
* precision. Here, `precision' means the fineness of approximation
125125
* of a real number, so, this module should not be included into
126-
* anything which is not a ubset of Real (so it should not be
126+
* anything which is not a subset of Real (so it should not be
127127
* included in classes such as +Complex+ or +Matrix+).
128128
*/
129129

process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ rb_f_system(argc, argv)
14921492
* call-seq:
14931493
* sleep(duration=0) => fixnum
14941494
*
1495-
* Suspends the current thread for _duraction_ seconds (which may be
1495+
* Suspends the current thread for _duration_ seconds (which may be
14961496
* any number, including a +Float+ with fractional seconds). Returns the actual
14971497
* number of seconds slept (rounded), which may be less than that asked
14981498
* for if the thread was interrupted by a +SIGALRM+, or if

0 commit comments

Comments
 (0)