Repository: incubator-groovy Updated Branches: refs/heads/master c230e8704 -> 4475fa6dc
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/4475fa6d Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/4475fa6d Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/4475fa6d Branch: refs/heads/master Commit: 4475fa6dc806ee8ebdcb2e392e1d80a4b49f4faf Parents: c230e87 Author: pascalschumacher <pascalschumac...@gmx.net> Authored: Sat Jul 18 11:24:36 2015 +0200 Committer: pascalschumacher <pascalschumac...@gmx.net> Committed: Sat Jul 18 11:25:25 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/4475fa6d/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] ----