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 2020/11/04 10:51:32 UTC

[groovy] branch GROOVY-8258 updated: GROOVY-8258: tweak doco

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-8258
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-8258 by this push:
     new 069ceea  GROOVY-8258: tweak doco
069ceea is described below

commit 069ceea7d22478ad7afbfcc51f2a13098e0eb335
Author: Daniel Sun <su...@apache.org>
AuthorDate: Wed Nov 4 18:51:16 2020 +0800

    GROOVY-8258: tweak doco
---
 subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc b/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc
index bcc3297..ea1ccf5 100644
--- a/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc
+++ b/subprojects/groovy-ginq/src/spec/doc/ginq-userguide.adoc
@@ -25,14 +25,14 @@ Groovy's `groovy-ginq` module provides a higher-level abstraction over collectio
 Also, querying XML, JSON, YAML, etc. could be supported by GINQ too because they can be parsed into collections.
 As GORM and Hibernate are powerful enough to support DB populating, we will cover collections first.
 
-== Groovy-Integrated Query, a.k.a.  GINQ
+== GINQ a.k.a. Groovy-Integrated Query
 
-GINQ consists of the following structure:
+GINQ is a DSL, which consists of the following structure:
 ```
        GINQ
        |__ from
        |__ [innerjoin/leftjoin/rightjoin/fulljoin/crossjoin]*
-       |   |__ on
+       |   |__ on (Note: crossjoin does not need the "on" clause)
        |__ [where]
        |__ [groupby]
        |   |__ [having]
@@ -49,7 +49,7 @@ As we could see, the simplest GINQ consists of a `from` clause and a `select` cl
 include::../test/org/apache/groovy/ginq/GinqTest.groovy[tags=ginq_simplest,indent=0]
 ----
 
-As a DSL, GINQ should be wrapped with the following block
+As a DSL, GINQ should be wrapped with the following block to be executed:
 ```groovy
 GQ { /* GINQ CODE */ }
 ```