You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/04/07 13:31:24 UTC
[41/50] [abbrv] groovy git commit: fix typo in isOdd
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/062b0b1d
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/062b0b1d
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/062b0b1d
Branch: refs/heads/parrot
Commit: 062b0b1d1068891c2bea157d10f7ce6d8355dec3
Parents: b58da0f
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:57:49 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/062b0b1d/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>