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

ruby-changes:53165

From: stomar <ko1@a...>
Date: Fri, 26 Oct 2018 21:23:32 +0900 (JST)
Subject: [ruby-changes:53165] stomar:r65379 (trunk): proc.c: [DOC] improve docs for {Method, Proc}#===

stomar	2018-10-26 21:23:25 +0900 (Fri, 26 Oct 2018)

  New Revision: 65379

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65379

  Log:
    proc.c: [DOC] improve docs for {Method,Proc}#===

  Modified files:
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 65378)
+++ proc.c	(revision 65379)
@@ -805,9 +805,9 @@ rb_block_lambda(void) https://github.com/ruby/ruby/blob/trunk/proc.c#L805
  *  call-seq:
  *     proc === obj   -> result_of_proc
  *
- *  Invokes the block with +obj+ as the proc's parameter like Proc#call.  It
- *  is to allow a proc object to be a target of +when+ clause in a case
- *  statement.
+ *  Invokes the block with +obj+ as the proc's parameter like Proc#call.
+ *  This allows a proc object to be the target of a +when+ clause
+ *  in a case statement.
  */
 
 /* CHECKME: are the argument checking semantics correct? */
@@ -2087,15 +2087,15 @@ method_clone(VALUE self) https://github.com/ruby/ruby/blob/trunk/proc.c#L2087
  *  call-seq:
  *     method === obj   -> result_of_method
  *
- *  Invokes the method with +obj+ as the parameter like #call. It
- *  is to allow a method object to be a target of +when+ clause in a case
- *  statement.
+ *  Invokes the method with +obj+ as the parameter like #call.
+ *  This allows a method object to be the target of a +when+ clause
+ *  in a case statement.
  *
  *      require 'prime'
  *
  *      case 1373
  *      when Prime.method(:prime?)
- *        # ....
+ *        # ...
  *      end
  */
 

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

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