You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/08/01 12:07:59 UTC
[2/2] incubator-groovy git commit: corrected range operator doco on
necessary conditions for range creation
corrected range operator doco on necessary conditions for range creation
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/0db90069
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/0db90069
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/0db90069
Branch: refs/heads/GROOVY_2_4_X
Commit: 0db90069db7b27233f0a0c7c3281d38592f9af5f
Parents: de82abb
Author: Shil S <sh...@gmail.com>
Authored: Sun Jul 26 15:42:08 2015 -0400
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sat Aug 1 12:07:37 2015 +0200
----------------------------------------------------------------------
src/spec/doc/core-operators.adoc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/0db90069/src/spec/doc/core-operators.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 0cd248b..1531ad1 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -532,7 +532,8 @@ include::{projectdir}/src/spec/test/OperatorsTest.groovy[tags=intrange,indent=0]
<5> meaning that you can call the `size` method on it
Ranges implementation is lightweight, meaning that only the lower and upper bounds are stored. You can create a range
-from any `Comparable` object. For example, you can create a range of characters this way:
+from any `Comparable` object that has `next()` and `previous()` methods to determine the next / previous item in the range.
+For example, you can create a range of characters this way:
[source,groovy]
----