diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 19:49:22 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-12 19:49:22 +0000 |
commit | 296bd00e02573a231ec52da538fc3b7d9745f688 (patch) | |
tree | 6639330d55f2a4f91d16916aea586e5b86ad17fd /doc/syntax | |
parent | 103e8d5bc757c88c9e2b0a567b830fbe36991816 (diff) | |
download | ruby-296bd00e02573a231ec52da538fc3b7d9745f688.tar.gz |
range.c: Documentation on endless ranges.
Based on patch by Victor Shepelev [DOC] [#7552]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/syntax')
-rw-r--r-- | doc/syntax/literals.rdoc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 62b80db04b..08eefd21de 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -333,6 +333,7 @@ its ending value. (1..2) # includes its ending value (1...2) # excludes its ending value + (1..) # endless range, representing infinite sequence from 1 to Infinity You may create a range of any object. See the Range documentation for details on the methods you need to implement. |