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 2017/03/29 01:57:09 UTC

groovy git commit: fix typo in isOdd

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X bf1d32392 -> e18fa9c28


fix typo in isOdd


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/e18fa9c2
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/e18fa9c2
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/e18fa9c2

Branch: refs/heads/GROOVY_2_5_X
Commit: e18fa9c28928054ac2e4a908bf2fcde28357ecb7
Parents: bf1d323
Author: paulk <pa...@asert.com.au>
Authored: Wed Mar 29 11:56:55 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Wed Mar 29 11:56:55 2017 +1000

----------------------------------------------------------------------
 src/spec/test/ClosuresSpecTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/e18fa9c2/src/spec/test/ClosuresSpecTest.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test/ClosuresSpecTest.groovy b/src/spec/test/ClosuresSpecTest.groovy
index 3e82e1a..5276b67 100644
--- a/src/spec/test/ClosuresSpecTest.groovy
+++ b/src/spec/test/ClosuresSpecTest.groovy
@@ -82,7 +82,7 @@ class ClosuresSpecTest extends GroovyTestCase {
         // end::closure_call_1_explicit[]
 
         // tag::closure_call_2[]
-        def isOdd = { int i-> i%2 == 1 }                            // <1>
+        def isOdd = { int i -> i%2 != 0 }                           // <1>
         assert isOdd(3) == true                                     // <2>
         assert isOdd.call(2) == false                               // <3>