Small groovy bang fix

This commit is contained in:
Funtov Kirill 2023-04-10 19:52:49 +03:00 committed by GitHub
parent 107b30ce2c
commit 4a2463eca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ def say(msg = 'Hello', name = 'world') {
assert 'Hello world!' == say() assert 'Hello world!' == say()
// Right most parameter with default value is eliminated first. // Right most parameter with default value is eliminated first.
assert 'Hi world!' == say('Hi') assert 'Hi world!' == say('Hi')
assert 'learn groovy' == say('learn', 'groovy') assert 'learn groovy!' == say('learn', 'groovy')
/* /*
Logical Branching and Looping Logical Branching and Looping