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 2020/08/28 12:09:10 UTC
[groovy] branch master updated: doco: lambda version of the
template method pattern (couple of typos)
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 c60df31 doco: lambda version of the template method pattern (couple of typos)
c60df31 is described below
commit c60df3160eae61794879d4f169202262929ec2ff
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Aug 28 22:09:02 2020 +1000
doco: lambda version of the template method pattern (couple of typos)
---
src/spec/doc/fragment_design-pattern-template-method.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/spec/doc/fragment_design-pattern-template-method.adoc b/src/spec/doc/fragment_design-pattern-template-method.adoc
index 7198ce6..fac783a 100644
--- a/src/spec/doc/fragment_design-pattern-template-method.adoc
+++ b/src/spec/doc/fragment_design-pattern-template-method.adoc
@@ -25,7 +25,7 @@
The https://en.wikipedia.org/wiki/Template_method_pattern[Template Method Pattern] abstracts
away the details of several algorithms.
The generic part of an algorithm is contained within a base class.
-Particular implementation details are captured within base classes.
+Particular implementation details are captured within child classes.
The generic pattern of classes involved looks like this:
[plantuml, TemplateMethodClasses, png]
@@ -55,7 +55,7 @@ AbstractClass <|-- ConcreteClass2
== Example with traditional classes
In this example, the base `Accumulator` class captures the essence of the accumulation algorithm.
-The concrete classes `Sum` and `Product` provide particular customised ways to use the generic accumulation algorithm.
+The child classes `Sum` and `Product` provide particular customised ways to use the generic accumulation algorithm.
[source,groovy]
----