You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2016/07/18 06:42:55 UTC

groovy git commit: slight improvement to doco for constructors (cont'd)

Repository: groovy
Updated Branches:
  refs/heads/master ee8f0a122 -> f21df9e48


slight improvement to doco for constructors (cont'd)


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

Branch: refs/heads/master
Commit: f21df9e48319f44a0ad562909c3e97b9c058649c
Parents: ee8f0a1
Author: paulk <pa...@asert.com.au>
Authored: Mon Jul 18 16:42:45 2016 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Mon Jul 18 16:42:45 2016 +1000

----------------------------------------------------------------------
 src/spec/doc/core-object-orientation.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/f21df9e4/src/spec/doc/core-object-orientation.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-object-orientation.adoc b/src/spec/doc/core-object-orientation.adoc
index aede9a3..d88c38a 100644
--- a/src/spec/doc/core-object-orientation.adoc
+++ b/src/spec/doc/core-object-orientation.adoc
@@ -250,7 +250,7 @@ To create an object by using positional argument constructors, the respective cl
 constructors. In the case of multiple constructors, each must have a unique type signature. The constructors can also
 added to the class using the gapi:groovy.transform.TupleConstructor[] annotation.
 
-Typically, once at least one constructor is declared, the class can only be instantiated by getting one of its
+Typically, once at least one constructor is declared, the class can only be instantiated by having one of its
 constructors called. It is worth noting that, in this case, you can't normally create the class with named parameters.
 Groovy does support named parameters so long as the class contains a no-arg constructor or a constructor which takes
 a single `Map` argument - see the next section for details.
@@ -299,7 +299,7 @@ or a constructor with a single `Map` argument as previously mentioned.
 by supply both positional constructors as well as a no-arg or Map constructor.
 * When no (or a no-arg) constructor is declared, Groovy replaces the named constructor call by a call
 to the no-arg constructor followed by calls to the setter for each supplied named property. So, you
-might be better off using the Map constructor if your propertie are declared as `final` (since they
+might be better off using the Map constructor if your properties are declared as `final` (since they
 must be set in the constructor rather than after the fact with setters).