mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* NEWS: fix description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0732ed367c
commit
01983c97a9
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Sep 2 14:15:00 2013 Kenta Murata <mrkn@cookpad.com>
|
||||||
|
|
||||||
|
* NEWS: fix description of number literal suffixes.
|
||||||
|
|
||||||
Mon Sep 2 14:01:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
Mon Sep 2 14:01:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||||
|
|
||||||
* test/rake/test_rake_rules.rb: add space after string literal to
|
* test/rake/test_rake_rules.rb: add space after string literal to
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -13,7 +13,7 @@ with all sufficient information, see the ChangeLog file.
|
||||||
|
|
||||||
=== Language changes
|
=== Language changes
|
||||||
|
|
||||||
* Added integer and float literals: 'r', 'i', and 'ri'.
|
* Added suffixes for integer and float literals: 'r', 'i', and 'ri'.
|
||||||
* "42r" and "3.14r" are evaluated as Rational(42, 1) and 3.14.rationalize,
|
* "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
|
respectively. But exponential form with 'r' suffix like "6.022e+23r" is
|
||||||
not accepted because it is misleading.
|
not accepted because it is misleading.
|
||||||
|
|
Loading…
Add table
Reference in a new issue