summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFuntov Kirill <funtaps@gmail.com>2023-04-10 19:52:49 +0300
committerGitHub <noreply@github.com>2023-04-10 19:52:49 +0300
commit4a2463eca0b366f67c6fa0be580bdacd62ba83d0 (patch)
treebe342ac8b5bd5897c443585ef1c72a652c76a846
parent107b30ce2ced44ea3a641d7181779fd0d8bb4e18 (diff)
Small groovy bang fix
-rw-r--r--groovy.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/groovy.html.markdown b/groovy.html.markdown
index 0d589c10..fa0658a4 100644
--- a/groovy.html.markdown
+++ b/groovy.html.markdown
@@ -193,7 +193,7 @@ def say(msg = 'Hello', name = 'world') {
assert 'Hello world!' == say()
// Right most parameter with default value is eliminated first.
assert 'Hi world!' == say('Hi')
-assert 'learn groovy' == say('learn', 'groovy')
+assert 'learn groovy!' == say('learn', 'groovy')
/*
Logical Branching and Looping