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

Previous Topic Next Topic
 
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_5_X 6a6e43edb -> 686565a6d


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/686565a6
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/686565a6
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/686565a6

Branch: refs/heads/GROOVY_2_5_X
Commit: 686565a6d599c7c3044a6faebd9cf317cdafbac8
Parents: 6a6e43e
Author: Jennifer Strater <[hidden email]>
Authored: Mon Jun 11 13:59:23 2018 +0200
Committer: John Wagenleitner <[hidden email]>
Committed: Mon Jun 11 10:44:18 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/686565a6/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.