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/29 06:51:31 UTC

[groovy] branch master updated: doco: closure/lambda versions of the decorator pattern (fix typo)

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 4db5f7a  doco: closure/lambda versions of the decorator pattern (fix typo)
4db5f7a is described below

commit 4db5f7a25c6754d89b1e4787f69ce8534223de3d
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Aug 29 16:51:22 2020 +1000

    doco: closure/lambda versions of the decorator pattern (fix typo)
---
 src/spec/test/DesignPatternsTest.groovy | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/spec/test/DesignPatternsTest.groovy b/src/spec/test/DesignPatternsTest.groovy
index 29bbfe7..936862a 100644
--- a/src/spec/test/DesignPatternsTest.groovy
+++ b/src/spec/test/DesignPatternsTest.groovy
@@ -808,6 +808,8 @@ class DesignPatternsTest extends CompilableTestSupport {
             logger.log('x')
             // => message: X
             // end::decorator_runtime_behaviour[]
+        '''
+        shouldCompile '''
             // tag::decorating_logger_closure[]
             class DecoratingLogger {
                 def decoration = Closure.IDENTITY