This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 5cbab4cf06 style guide: language improvements
5cbab4cf06 is described below
commit 5cbab4cf0698a78783da696a8d590e83a2fb2501
Author: Jakub Pavlik <[email protected]>
AuthorDate: Sun Feb 2 22:42:31 2025 +0100
style guide: language improvements
---
src/spec/doc/style-guide.adoc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/spec/doc/style-guide.adoc b/src/spec/doc/style-guide.adoc
index feacc33b74..2b5298c904 100644
--- a/src/spec/doc/style-guide.adoc
+++ b/src/spec/doc/style-guide.adoc
@@ -240,8 +240,8 @@ connection.doPost("${BASE_URI}/modify.hqu", params,
ResourcesResponse)
== Getters and Setters
-In Groovy, a getters and setters form what we call a "property",
-and offers a shortcut notation for accessing and setting such properties.
+In Groovy, a getter and a setter form what we call a "property",
+and offer a shortcut notation for accessing and setting such properties.
So instead of the Java-way of calling getters / setters, you can use a
field-like access notation:
[source,groovy]
@@ -635,7 +635,7 @@ def check(String name) {
----
You'll also notice the nice output that Groovy's "Power Assert" statement
provides,
-with a graph view of the various values of each sub-expressions being asserted.
+with a graph view of the various values of each sub-expression being asserted.
== Elvis operator for default values