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

ruby-changes:33157

From: marcandre <ko1@a...>
Date: Sun, 2 Mar 2014 10:55:20 +0900 (JST)
Subject: [ruby-changes:33157] marcandRe: r45236 (trunk): * proc.c: Tweak rdoc for consistent whitespace

marcandre	2014-03-02 10:55:17 +0900 (Sun, 02 Mar 2014)

  New Revision: 45236

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

  Log:
    * proc.c: Tweak rdoc for consistent whitespace

  Modified files:
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 45235)
+++ proc.c	(revision 45236)
@@ -846,24 +846,24 @@ rb_proc_call_with_block(VALUE self, int https://github.com/ruby/ruby/blob/trunk/proc.c#L846
  *  arguments. A <code>proc</code> with no argument declarations
  *  is the same a block declaring <code>||</code> as its arguments.
  *
- *     proc {}.arity          #=>  0
- *     proc {||}.arity        #=>  0
- *     proc {|a|}.arity       #=>  1
- *     proc {|a,b|}.arity     #=>  2
- *     proc {|a,b,c|}.arity   #=>  3
- *     proc {|*a|}.arity      #=> -1
- *     proc {|a,*b|}.arity    #=> -2
- *     proc {|a,*b, c|}.arity #=> -3
+ *     proc {}.arity                  #=>  0
+ *     proc { || }.arity              #=>  0
+ *     proc { |a| }.arity             #=>  1
+ *     proc { |a, b| }.arity          #=>  2
+ *     proc { |a, b, c| }.arity       #=>  3
+ *     proc { |*a| }.arity            #=> -1
+ *     proc { |a, *b| }.arity         #=> -2
+ *     proc { |a, *b, c| }.arity      #=> -3
  *
- *     proc   { |x = 0| }.arity       #=> 0
- *     lambda { |a = 0| }.arity       #=> -1
- *     proc   { |x=0, y| }.arity      #=> 1
+ *     proc   { |x=0| }.arity         #=>  0
+ *     lambda { |x=0| }.arity         #=> -1
+ *     proc   { |x=0, y| }.arity      #=>  1
  *     lambda { |x=0, y| }.arity      #=> -2
- *     proc   { |x=0, y=0| }.arity    #=> 0
+ *     proc   { |x=0, y=0| }.arity    #=>  0
  *     lambda { |x=0, y=0| }.arity    #=> -1
- *     proc   { |x, y=0| }.arity      #=> 1
+ *     proc   { |x, y=0| }.arity      #=>  1
  *     lambda { |x, y=0| }.arity      #=> -2
- *     proc   { |(x, y), z=0| }.arity #=> 1
+ *     proc   { |(x, y), z=0| }.arity #=>  1
  *     lambda { |(x, y), z=0| }.arity #=> -2
  */
 

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

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