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

ruby-changes:42759

From: akr <ko1@a...>
Date: Sat, 30 Apr 2016 12:25:49 +0900 (JST)
Subject: [ruby-changes:42759] akr:r54833 (trunk): move Fixnum#/ document position.

akr	2016-04-30 13:22:27 +0900 (Sat, 30 Apr 2016)

  New Revision: 54833

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

  Log:
    move Fixnum#/ document position.

  Modified files:
    trunk/numeric.c
Index: numeric.c
===================================================================
--- numeric.c	(revision 54832)
+++ numeric.c	(revision 54833)
@@ -3416,6 +3416,15 @@ int_fdiv(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3416
     return Qnil;
 }
 
+/*
+ * Document-method: Fixnum#/
+ * call-seq:
+ *   fix / numeric  ->  numeric_result
+ *
+ * Performs division: the class of the resulting object depends on the class of
+ * +numeric+ and on the magnitude of the result. It may return a Bignum.
+ */
+
 static VALUE
 fix_divide(VALUE x, VALUE y, ID op)
 {
@@ -3450,15 +3459,6 @@ fix_divide(VALUE x, VALUE y, ID op) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3459
     }
 }
 
-/*
- * Document-method: Fixnum#/
- * call-seq:
- *   fix / numeric  ->  numeric_result
- *
- * Performs division: the class of the resulting object depends on the class of
- * +numeric+ and on the magnitude of the result. It may return a Bignum.
- */
-
 static VALUE
 fix_div(VALUE x, VALUE y)
 {

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

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