mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Fix typo in groovy.html.markdown
"mthod" -> "method"
This commit is contained in:
parent
3356b2bc9f
commit
c23bbf004a
@ -184,7 +184,7 @@ class Foo {
|
|||||||
Methods with optional parameters
|
Methods with optional parameters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// A mthod can have default values for parameters
|
// A method can have default values for parameters
|
||||||
def say(msg = 'Hello', name = 'world') {
|
def say(msg = 'Hello', name = 'world') {
|
||||||
"$msg $name!"
|
"$msg $name!"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user