1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 17:54:26 +02:00

Merge pull request #4640 from funtaps/patch-1

[groovy/en] Small groovy bang fix
This commit is contained in:
Marcel Ribeiro-Dantas
2023-04-10 15:11:06 -03:00
committed by GitHub

View File

@@ -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