From da011c8311088ee53a791e4d31bf6b6c4fa96db5 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 14 Apr 2004 04:06:52 +0000 Subject: * 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 --- ChangeLog | 7 ++++++- array.c | 4 ++-- enum.c | 2 +- eval.c | 2 +- file.c | 2 +- io.c | 8 ++++---- numeric.c | 2 +- object.c | 4 ++-- prec.c | 2 +- process.c | 2 +- re.c | 4 ++-- string.c | 4 ++-- 12 files changed, 24 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70f2dd0714..e52327700c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,15 @@ +Wed Apr 14 13:06:35 2004 Doug Kearns + + * 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] + Wed Apr 14 11:03:22 Hirokazu Yamamoto * defines.h: include to get fd_set definition in BeOS. Tue Apr 13 23:06:30 2004 Masatoshi SEKI - * lib/rinda/rinda.rb: change pattern matching. + * lib/rinda/rinda.rb: change pattern matching. a === b -> a == b || a === b. [druby-ja:98] * test/rinda/test_rinda.rb: ditto. diff --git a/array.c b/array.c index 4bdc202b1c..22242de44d 100644 --- a/array.c +++ b/array.c @@ -2001,7 +2001,7 @@ rb_ary_delete_if(ary) * self with corresponding elements from each argument. This * generates a sequence of self#size n-element * arrays, where n is one more that the count of arguments. If - * the size of any arguemnt is less than enumObj#size, + * the size of any argument is less than enumObj#size, * nil values are supplied. If a block given, it is * invoked for each output array, otherwise an array of arrays is * returned. @@ -2343,7 +2343,7 @@ rb_ary_times(ary, times) * comparing _obj_ with the first element of each contained array * using obj.==. * Returns the first contained array that matches (that - * is, the first assoc}iated array, + * is, the first associated array), * or +nil+ if no match is found. * See also Array.rassoc. * diff --git a/enum.c b/enum.c index 0b88176fb6..df602b0008 100644 --- a/enum.c +++ b/enum.c @@ -864,7 +864,7 @@ zip_i(val, memo) * enum with corresponding elements from each argument. This * generates a sequence of enum#size n-element * arrays, where n is one more that the count of arguments. If - * the size of any arguemnt is less than enum#size, + * the size of any argument is less than enum#size, * nil values are supplied. If a block given, it is * invoked for each output array, otherwise an array of arrays is * returned. diff --git a/eval.c b/eval.c index 347b7bcb87..fb91c7ac2a 100644 --- a/eval.c +++ b/eval.c @@ -5257,7 +5257,7 @@ static int last_call_status; * Invoked by Ruby when obj is sent a message it cannot handle. * symbol is the symbol for the method called, and args * are any arguments that were passed to it. By default, the interpreter - * raises an error when this method is called. However, it is possibe + * raises an error when this method is called. However, it is possible * to override the method to provide more dynamic behavior. * The example below creates * a class Roman, which responds to methods with names diff --git a/file.c b/file.c index d8973400d3..afc364ea4c 100644 --- a/file.c +++ b/file.c @@ -481,7 +481,7 @@ rb_stat_ctime(self) * call-seq: * stat.inspect => string * - * Produce a nicely formatted descriptin of stat. + * Produce a nicely formatted description of stat. * * File.stat("/etc/passwd").inspect * #=> "#sep_string. A separator of nil reads the entire * contents, and a zero-length separator reads the input a paragraph at * a time (two successive newlines in the input separate paragraphs). - * The stream must be opened for reading or an IOerror + * The stream must be opened for reading or an IOError * will be raised. The line read in will be returned and also assigned * to $_. Returns nil if called at end of * file. @@ -1465,7 +1465,7 @@ rb_io_readline(argc, argv, io) * sep_string. If set_string is nil, the * rest of the stream is returned as a single record. * The stream must be opened for reading or an - * IOerror will be raised. + * IOError will be raised. * * f = File.new("testfile") * f.readlines[0] #=> "This is line one\n" @@ -1502,7 +1502,7 @@ rb_io_readlines(argc, argv, io) * * Executes the block for every line in ios, where lines are * separated by sep_string. ios must be opened for - * reading or an IOerror will be raised. + * reading or an IOError will be raised. * * f = File.new("testfile") * f.each {|line| puts "#{f.lineno}: #{line}" } @@ -1544,7 +1544,7 @@ rb_io_each_line(argc, argv, io) * * Calls the given block once for each byte (0..255) in ios, * passing the byte as an argument. The stream must be opened for - * reading or an IOerror will be raised. + * reading or an IOError will be raised. * * f = File.new("testfile") * checksum = 0 diff --git a/numeric.c b/numeric.c index a05bedde85..4adaa6e1d4 100644 --- a/numeric.c +++ b/numeric.c @@ -682,7 +682,7 @@ flodivmod(x, y, divp, modp) * flt % other => float * flt.modulo(other) => float * - * Return the modulo after dividion of flt by other. + * Return the modulo after division of flt by other. * * 6543.21.modulo(137) #=> 104.21 * 6543.21.modulo(137.24) #=> 92.9299999999996 diff --git a/object.c b/object.c index 0e89b0f619..b44534fc0f 100644 --- a/object.c +++ b/object.c @@ -37,7 +37,7 @@ static ID id_eq, id_eql, id_inspect, id_init_copy; * call-seq: * obj === other => true or false * - * Case Equality---For class Object, effectivelt the same + * Case Equality---For class Object, effectively the same * as calling #==, but typically overridden by descendents * to provide meaningful semantics in case statements. */ @@ -1164,7 +1164,7 @@ sym_to_s(sym) * call-seq: * sym.to_sym => sym * - * In general, to_sym returns the Symbol correspopnding + * In general, to_sym returns the Symbol corresponding * to an object. As sym is already a symbol, self is returned * in this case. */ diff --git a/prec.c b/prec.c index b7a6d5ba2b..dc89a01435 100644 --- a/prec.c +++ b/prec.c @@ -123,7 +123,7 @@ prec_included(module, include) * Precision is a mixin for concrete numeric classes with * precision. Here, `precision' means the fineness of approximation * of a real number, so, this module should not be included into - * anything which is not a ubset of Real (so it should not be + * anything which is not a subset of Real (so it should not be * included in classes such as +Complex+ or +Matrix+). */ diff --git a/process.c b/process.c index 4198b481b9..bec82ae37f 100644 --- a/process.c +++ b/process.c @@ -1492,7 +1492,7 @@ rb_f_system(argc, argv) * call-seq: * sleep(duration=0) => fixnum * - * Suspends the current thread for _duraction_ seconds (which may be + * Suspends the current thread for _duration_ seconds (which may be * any number, including a +Float+ with fractional seconds). Returns the actual * number of seconds slept (rounded), which may be less than that asked * for if the thread was interrupted by a +SIGALRM+, or if diff --git a/re.c b/re.c index 5c0bf4d152..acb6c1b299 100644 --- a/re.c +++ b/re.c @@ -410,7 +410,7 @@ rb_reg_inspect(re) * call-seq: * rxp.to_s => str * - * Returns a string containing the regular expression and its options (usng the + * Returns a string containing the regular expression and its options (using the * (?xxx:yyy) notation. This string can be fed back in to * Regexp::new to a regular expression with the same semantics as * the original. (However, Regexp#== may not return true when @@ -1124,7 +1124,7 @@ match_array(match, start) * m = /(.)(.)(\d+)(\d)/.match("THX1138.") * m.to_a #=> ["HX1138", "H", "X", "113", "8"] * - * Because to_a is called when exanding + * Because to_a is called when expanding * *variable, there's a useful assignment * shortcut for extracting matched fields. This is slightly slower than * accessing the fields directly (as an intermediate array is diff --git a/string.c b/string.c index dc67c1145e..8b55d75212 100644 --- a/string.c +++ b/string.c @@ -3396,11 +3396,11 @@ rb_str_count(argc, argv, str) * split on whitespace as if ` ' were specified. * * If the limit parameter is omitted, trailing null fields are - * supressed. If limit is a positive number, at most that number of + * suppressed. If limit is a positive number, at most that number of * fields will be returned (if limit is 1, the entire * string is returned as the only entry in an array). If negative, there is no * limit to the number of fields returned, and trailing null fields are not - * supressed. + * suppressed. * * " now's the time".split #=> ["now's", "the", "time"] * " now's the time".split(' ') #=> ["now's", "the", "time"] -- cgit v1.2.3