mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-27 09:15:50 +03:00
Small groovy bang fix
This commit is contained in:
parent
107b30ce2c
commit
4a2463eca0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user