diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-01 20:46:01 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-01 20:46:01 +0000 |
commit | 1e3a29082bd4e3616682d46112b42af7055e12f4 (patch) | |
tree | 6ee44f8cc2c6e07bbf78cf8b95411a44c9569795 /NEWS | |
parent | 991bd133d56eece356c7d3467caa064feae3164b (diff) | |
download | ruby-1e3a29082bd4e3616682d46112b42af7055e12f4.tar.gz |
* NEWS: fix typos in the description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,8 +16,8 @@ with all sufficient information, see the ChangeLog file. * 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. |