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

ruby-changes:30266

From: eregon <ko1@a...>
Date: Fri, 2 Aug 2013 05:46:12 +0900 (JST)
Subject: [ruby-changes:30266] eregon:r42318 (trunk): * NEWS: fix typos in the description of number literal suffixes.

eregon	2013-08-02 05:46:01 +0900 (Fri, 02 Aug 2013)

  New Revision: 42318

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

  Log:
    * NEWS: fix typos in the description of number literal suffixes.

  Modified files:
    trunk/NEWS

Index: NEWS
===================================================================
--- NEWS	(revision 42317)
+++ NEWS	(revision 42318)
@@ -16,8 +16,8 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L16
 * Added integer and float literals: 'r', 'i', and 'ri'.
   * "42r" and "3.14r" are evaluated as Rational(42, 1) and 3.14.rationalize,
     respectively.  But exponential form with 'r' suffix like "6.022e+23r" is
-    not accepted bcause it is misleadable.
-  * "42i" and "3.14i" are evaluated as Complex(0, 1) and Complex(0, 1.5),
+    not accepted because it is misleading.
+  * "42i" and "3.14i" are evaluated as Complex(0, 42) and Complex(0, 3.14),
     respectively.
   * "42ri" and "3.14ri" are evaluated as Complex(0, 42r) and Complex(0, 3.14r),
     respectively.

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

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