Repository: incubator-groovy Updated Branches: refs/heads/GROOVY_2_4_X 58a6b7383 -> e4023691f
Documentation: Fix links to Groovy truth section (as reported in https://github.com/groovy/groovy-website/issues/71) Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/e4023691 Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/e4023691 Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/e4023691 Branch: refs/heads/GROOVY_2_4_X Commit: e4023691f6af901f679092f77b744ab730714440 Parents: 58a6b73 Author: pascalschumacher <pascalschumac...@gmx.net> Authored: Sat Jul 18 11:24:36 2015 +0200 Committer: pascalschumacher <pascalschumac...@gmx.net> Committed: Sat Jul 18 11:24:36 2015 +0200 ---------------------------------------------------------------------- src/spec/doc/core-operators.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e4023691/src/spec/doc/core-operators.adoc ---------------------------------------------------------------------- diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc index 59b1af0..0cd248b 100644 --- a/src/spec/doc/core-operators.adoc +++ b/src/spec/doc/core-operators.adoc @@ -237,7 +237,7 @@ In Groovy, bitwise operators have the particularity of being <<Operator-Overload === Not operator The "not" operator is represented with an exclamation mark (`!`) and inverts the result of the underlying boolean expression. In -particular, it is possible to combine the `not` operator with the <<Groovy-Truth,Groovy truth>>: +particular, it is possible to combine the `not` operator with the <<core-semantics.adoc#Groovy-Truth,Groovy truth>>: [source,groovy] ---- @@ -263,7 +263,7 @@ You can write: include::{projectdir}/src/spec/test/OperatorsTest.groovy[tags=conditional_op_ternary_ternary,indent=0] ---- -The ternary operator is also compatible with the <<Groovy-Truth,Groovy truth>>, so you can make it even simpler: +The ternary operator is also compatible with the <<core-semantics.adoc#Groovy-Truth,Groovy truth>>, so you can make it even simpler: [source,groovy] ---- @@ -274,7 +274,7 @@ include::{projectdir}/src/spec/test/OperatorsTest.groovy[tags=conditional_op_ter The "Elvis operator" is a shortening of the ternary operator. One instance of where this is handy is for returning a 'sensible default' value if an expression resolves to `false`-ish (as in -<<Groovy-Truth,Groovy truth>>). A simple example might look like this: +<<core-semantics.adoc#Groovy-Truth,Groovy truth>>). A simple example might look like this: [source,groovy] ----