mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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/trunk@6158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									b88dfa10b5
								
							
						
					
					
						commit
						d952e33003
					
				
					 12 changed files with 24 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Wed Apr 14 13:06:09 2004  Doug Kearns  <djkea2@mugca.its.monash.edu.au>
 | 
			
		||||
 | 
			
		||||
	* 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:29:56 2004  WATANABE Hirofumi  <eban@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* numeric.c (flo_eq): workaround for bcc32's bug.
 | 
			
		||||
| 
						 | 
				
			
			@ -9,7 +14,7 @@ Wed Apr 14 10:57:40  Hirokazu Yamamoto  <ocean@m2.ccsnet.ne.jp>
 | 
			
		|||
 | 
			
		||||
Tue Apr 13 23:00:55 2004  Masatoshi SEKI  <m_seki@mva.biglobe.ne.jp>
 | 
			
		||||
 | 
			
		||||
	* 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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								array.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								array.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2042,7 +2042,7 @@ rb_ary_delete_if(ary)
 | 
			
		|||
 *  <i>self</i> with corresponding elements from each argument. This
 | 
			
		||||
 *  generates a sequence of <code>self#size</code> <em>n</em>-element
 | 
			
		||||
 *  arrays, where <em>n</em> is one more that the count of arguments. If
 | 
			
		||||
 *  the size of any arguemnt is less than <code>enumObj#size</code>,
 | 
			
		||||
 *  the size of any argument is less than <code>enumObj#size</code>,
 | 
			
		||||
 *  <code>nil</code> values are supplied. If a block given, it is
 | 
			
		||||
 *  invoked for each output array, otherwise an array of arrays is
 | 
			
		||||
 *  returned.
 | 
			
		||||
| 
						 | 
				
			
			@ -2384,7 +2384,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.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								enum.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								enum.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -864,7 +864,7 @@ zip_i(val, memo)
 | 
			
		|||
 *  <i>enum</i> with corresponding elements from each argument. This
 | 
			
		||||
 *  generates a sequence of <code>enum#size</code> <em>n</em>-element
 | 
			
		||||
 *  arrays, where <em>n</em> is one more that the count of arguments. If
 | 
			
		||||
 *  the size of any arguemnt is less than <code>enum#size</code>,
 | 
			
		||||
 *  the size of any argument is less than <code>enum#size</code>,
 | 
			
		||||
 *  <code>nil</code> values are supplied. If a block given, it is
 | 
			
		||||
 *  invoked for each output array, otherwise an array of arrays is
 | 
			
		||||
 *  returned.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								eval.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								eval.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -5219,7 +5219,7 @@ static int last_call_status;
 | 
			
		|||
 *  Invoked by Ruby when <i>obj</i> is sent a message it cannot handle.
 | 
			
		||||
 *  <i>symbol</i> is the symbol for the method called, and <i>args</i>
 | 
			
		||||
 *  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 <code>Roman</code>, which responds to methods with names
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								file.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								file.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -506,7 +506,7 @@ rb_stat_ctime(self)
 | 
			
		|||
 * call-seq:
 | 
			
		||||
 *   stat.inspect  =>  string
 | 
			
		||||
 *
 | 
			
		||||
 * Produce a nicely formatted descriptin of <i>stat</i>.
 | 
			
		||||
 * Produce a nicely formatted description of <i>stat</i>.
 | 
			
		||||
 *
 | 
			
		||||
 *   File.stat("/etc/passwd").inspect
 | 
			
		||||
 *      #=> "#<File::Stat dev=0xe000005, ino=1078078, mode=0100644, 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								io.c
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								io.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1337,7 +1337,7 @@ rb_io_gets(io)
 | 
			
		|||
 *  <i>sep_string</i>. A separator of <code>nil</code> 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 <code>IOerror</code>
 | 
			
		||||
 *  The stream must be opened for reading or an <code>IOError</code>
 | 
			
		||||
 *  will be raised. The line read in will be returned and also assigned
 | 
			
		||||
 *  to <code>$_</code>. Returns <code>nil</code> if called at end of
 | 
			
		||||
 *  file.
 | 
			
		||||
| 
						 | 
				
			
			@ -1485,7 +1485,7 @@ rb_io_readline(argc, argv, io)
 | 
			
		|||
 *  <i>sep_string</i>. If <i>set_string</i> is <code>nil</code>, the
 | 
			
		||||
 *  rest of the stream is returned as a single record.
 | 
			
		||||
 *  The stream must be opened for reading or an
 | 
			
		||||
 *  <code>IOerror</code> will be raised.
 | 
			
		||||
 *  <code>IOError</code> will be raised.
 | 
			
		||||
 *     
 | 
			
		||||
 *     f = File.new("testfile")
 | 
			
		||||
 *     f.readlines[0]   #=> "This is line one\n"
 | 
			
		||||
| 
						 | 
				
			
			@ -1522,7 +1522,7 @@ rb_io_readlines(argc, argv, io)
 | 
			
		|||
 *  
 | 
			
		||||
 *  Executes the block for every line in <em>ios</em>, where lines are
 | 
			
		||||
 *  separated by <i>sep_string</i>. <em>ios</em> must be opened for
 | 
			
		||||
 *  reading or an <code>IOerror</code> will be raised.
 | 
			
		||||
 *  reading or an <code>IOError</code> will be raised.
 | 
			
		||||
 *     
 | 
			
		||||
 *     f = File.new("testfile")
 | 
			
		||||
 *     f.each {|line| puts "#{f.lineno}: #{line}" }
 | 
			
		||||
| 
						 | 
				
			
			@ -1564,7 +1564,7 @@ rb_io_each_line(argc, argv, io)
 | 
			
		|||
 *  
 | 
			
		||||
 *  Calls the given block once for each byte (0..255) in <em>ios</em>,
 | 
			
		||||
 *  passing the byte as an argument. The stream must be opened for
 | 
			
		||||
 *  reading or an <code>IOerror</code> will be raised.
 | 
			
		||||
 *  reading or an <code>IOError</code> will be raised.
 | 
			
		||||
 *     
 | 
			
		||||
 *     f = File.new("testfile")
 | 
			
		||||
 *     checksum = 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -683,7 +683,7 @@ flodivmod(x, y, divp, modp)
 | 
			
		|||
 *     flt % other         => float
 | 
			
		||||
 *     flt.modulo(other)   => float
 | 
			
		||||
 *  
 | 
			
		||||
 *  Return the modulo after dividion of <code>flt</code> by <code>other</code>.
 | 
			
		||||
 *  Return the modulo after division of <code>flt</code> by <code>other</code>.
 | 
			
		||||
 *     
 | 
			
		||||
 *     6543.21.modulo(137)      #=> 104.21
 | 
			
		||||
 *     6543.21.modulo(137.24)   #=> 92.9299999999996
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								object.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								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 <code>Object</code>, effectivelt the same
 | 
			
		||||
 *  Case Equality---For class <code>Object</code>, effectively the same
 | 
			
		||||
 *  as calling  <code>#==</code>, but typically overridden by descendents
 | 
			
		||||
 *  to provide meaningful semantics in <code>case</code> statements.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -1140,7 +1140,7 @@ sym_to_s(sym)
 | 
			
		|||
 * call-seq:
 | 
			
		||||
 *   sym.to_sym   => sym
 | 
			
		||||
 *
 | 
			
		||||
 * In general, <code>to_sym</code> returns the <code>Symbol</code> correspopnding
 | 
			
		||||
 * In general, <code>to_sym</code> returns the <code>Symbol</code> corresponding
 | 
			
		||||
 * to an object. As <i>sym</i> is already a symbol, <code>self</code> is returned
 | 
			
		||||
 * in this case.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								prec.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								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+).
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1613,7 +1613,7 @@ rb_f_spawn(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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								re.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								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
 | 
			
		||||
 *  <code>(?xxx:yyy)</code> notation. This string can be fed back in to
 | 
			
		||||
 *  <code>Regexp::new</code> to a regular expression with the same semantics as
 | 
			
		||||
 *  the original. (However, <code>Regexp#==</code> may not return true when
 | 
			
		||||
| 
						 | 
				
			
			@ -1129,7 +1129,7 @@ match_array(match, start)
 | 
			
		|||
 *     m = /(.)(.)(\d+)(\d)/.match("THX1138.")
 | 
			
		||||
 *     m.to_a   #=> ["HX1138", "H", "X", "113", "8"]
 | 
			
		||||
 *     
 | 
			
		||||
 *  Because <code>to_a</code> is called when exanding
 | 
			
		||||
 *  Because <code>to_a</code> is called when expanding
 | 
			
		||||
 *  <code>*</code><em>variable</em>, there's a useful assignment
 | 
			
		||||
 *  shortcut for extracting matched fields. This is slightly slower than
 | 
			
		||||
 *  accessing the fields directly (as an intermediate array is
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								string.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								string.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3375,11 +3375,11 @@ rb_str_count(argc, argv, str)
 | 
			
		|||
 *  split on whitespace as if ` ' were specified.
 | 
			
		||||
 *     
 | 
			
		||||
 *  If the <i>limit</i> parameter is omitted, trailing null fields are
 | 
			
		||||
 *  supressed. If <i>limit</i> is a positive number, at most that number of
 | 
			
		||||
 *  suppressed. If <i>limit</i> is a positive number, at most that number of
 | 
			
		||||
 *  fields will be returned (if <i>limit</i> is <code>1</code>, 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"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue