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

ruby-changes:3702

From: ko1@a...
Date: Wed, 23 Jan 2008 23:56:00 +0900 (JST)
Subject: [ruby-changes:3702] mame - Ruby:r15191 (trunk): * sprintf.c: fix comment.

mame	2008-01-23 23:55:39 +0900 (Wed, 23 Jan 2008)

  New Revision: 15191

  Modified files:
    trunk/ChangeLog
    trunk/math.c
    trunk/sprintf.c

  Log:
    * sprintf.c: fix comment.  [ruby-dev:33275]
    * math.c: fix comment.  [ruby-dev:33276]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/math.c?r1=15191&r2=15190&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15191&r2=15190&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/sprintf.c?r1=15191&r2=15190&diff_format=u

Index: math.c
===================================================================
--- math.c	(revision 15190)
+++ math.c	(revision 15191)
@@ -128,7 +128,7 @@
  *  call-seq:
  *     Math.asin(x)    => float
  *  
- *  Computes the arc sine of <i>x</i>. Returns 0..PI.
+ *  Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
  */
 
 static VALUE
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15190)
+++ ChangeLog	(revision 15191)
@@ -1,3 +1,8 @@
+Wed Jan 23 23:54:40 2008  Yusuke Endoh  <mame@t...>
+
+	* sprintf.c: fix comment.  [ruby-dev:33275]
+	* math.c: fix comment.  [ruby-dev:33276]
+
 Wed Jan 23 22:47:34 2008  Yusuke Endoh  <mame@t...>
 
 	* test/ruby/test_struct.rb: add tests to achieve over 90% test
Index: sprintf.c
===================================================================
--- sprintf.c	(revision 15190)
+++ sprintf.c	(revision 15191)
@@ -221,12 +221,7 @@
  *        s   | Argument is a string to be substituted. If the format
  *            | sequence contains a precision, at most that many characters
  *            | will be copied.
- *        u   | Treat argument as an unsigned decimal number. Negative integers
- *            | are displayed as a 32 bit two's complement plus one for the
- *            | underlying architecture; that is, 2 ** 32 + n.  However, since
- *            | Ruby has no inherent limit on bits used to represent the
- *            | integer, this value is preceded by two dots (..) in order to
- *            | indicate a infinite number of leading sign bits.
+ *        u   | Identical to `d'.
  *        X   | Convert argument as a hexadecimal number using uppercase
  *            | letters. Negative numbers will be displayed with two
  *            | leading periods (representing an infinite string of
@@ -243,7 +238,7 @@
  *     sprintf("%1$*2$s %2$d %1$s", "hello", 8)   #=> "   hello 8 hello"
  *     sprintf("%1$*2$s %2$d", "hello", -8)       #=> "hello    -8"
  *     sprintf("%+g:% g:%-g", 1.23, 1.23, 1.23)   #=> "+1.23: 1.23:1.23"
- *     sprintf("%u", -123)                        #=> "..4294967173"
+ *     sprintf("%u", -123)                        #=> "-123"
  */
 
 VALUE

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

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