summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-02 01:55:17 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-02 01:55:17 +0000
commit04042ec6eb45a5fd4913cdf2b9893e81e1ca2d75 (patch)
treeef443dc3710331c5ce1ba6ee2a75cb7660844588
parent9047641ce35be576ea95e31a35202aa8b213d5d8 (diff)
* proc.c: Tweak rdoc for consistent whitespace
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--proc.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/proc.c b/proc.c
index fc8fd7adfe..de04f6d441 100644
--- a/proc.c
+++ b/proc.c
@@ -846,24 +846,24 @@ rb_proc_call_with_block(VALUE self, int argc, const VALUE *argv, VALUE pass_proc
* 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 { |x = 0| }.arity #=> 0
- * lambda { |a = 0| }.arity #=> -1
- * proc { |x=0, y| }.arity #=> 1
+ * 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 { |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
*/