groovy git commit: reword one small section of the documentation on string interpolation (closes #754)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: reword one small section of the documentation on string interpolation (closes #754)

jwagenleitner-2
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 2d501010e -> f09baec94


reword one small section of the documentation on string interpolation (closes #754)

(cherry picked from commit 65daf37ea608fb143e53e659cf9903c38a4e7f0c)


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

Branch: refs/heads/GROOVY_2_4_X
Commit: f09baec943e03896423056f50e7e0aaf5af013cc
Parents: 2d50101
Author: Jennifer Strater <[hidden email]>
Authored: Mon Jun 11 13:59:23 2018 +0200
Committer: John Wagenleitner <[hidden email]>
Committed: Mon Jun 11 10:45:23 2018 -0700

----------------------------------------------------------------------
 src/spec/doc/core-syntax.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/f09baec9/src/spec/doc/core-syntax.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-syntax.adoc b/src/spec/doc/core-syntax.adoc
index 6d3bf45..30b48fd 100644
--- a/src/spec/doc/core-syntax.adoc
+++ b/src/spec/doc/core-syntax.adoc
@@ -367,7 +367,7 @@ include::{projectdir}/src/spec/test/SyntaxTest.groovy[tags=gstring_2,indent=0]
 ----
 
 [NOTE]
-Not only expressions are actually allowed in between the `${}` placeholder. Statements are also allowed, but a statement's value is just `null`.
+Not only are expressions allowed in between the `${}` placeholder, but so are statements. However, a statement's value is just `null`.
 So if several statements are inserted in that placeholder, the last one should somehow return a meaningful value to be inserted.
 For instance, +"The sum of 1 and 2 is equal to ${def a = 1; def b = 2; a + b}"+ is supported and works as expected but a good practice is usually to stick to simple expressions inside GString placeholders.