[前][次][番号順一覧][スレッド一覧]

ruby-changes:32701

From: zzak <ko1@a...>
Date: Sat, 1 Feb 2014 06:05:56 +0900 (JST)
Subject: [ruby-changes:32701] zzak:r44780 (trunk): * numeric.c: [DOC] Fix typo in example for #step [ci skip]

zzak	2014-02-01 06:05:52 +0900 (Sat, 01 Feb 2014)

  New Revision: 44780

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44780

  Log:
    * numeric.c: [DOC] Fix typo in example for #step [ci skip]
      Patch by @ksss [Fixes GH-522] https://github.com/ruby/ruby/pull/522

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44779)
+++ ChangeLog	(revision 44780)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Feb  1 06:04:56 2014  Zachary Scott  <e@z...>
+
+	* numeric.c: [DOC] Fix typo in example for #step [ci skip]
+	  Patch by @ksss [Fixes GH-522] https://github.com/ruby/ruby/pull/522
+
 Fri Jan 31 17:01:47 2014  Eric Wong <e@8...>
 
 	* ext/socket/init.c (rsock_socket0): split out SOCK_CLOEXEC version
Index: numeric.c
===================================================================
--- numeric.c	(revision 44779)
+++ numeric.c	(revision 44780)
@@ -1879,8 +1879,8 @@ num_step_size(VALUE from, VALUE args, VA https://github.com/ruby/ruby/blob/trunk/numeric.c#L1879
 }
 /*
  *  call-seq:
- *     num.step(by: step, to: limit]) {|i| block }  ->  self
- *     num.step(by: step, to: limit])               ->  an_enumerator
+ *     num.step(by: step, to: limit) {|i| block }   ->  self
+ *     num.step(by: step, to: limit)		    ->  an_enumerator
  *     num.step(limit=nil, step=1) {|i| block }     ->  self
  *     num.step(limit=nil, step=1)                  ->  an_enumerator
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]