Wrong Number

This commit is contained in:
Zee Ma
2015-09-27 15:19:46 +08:00
parent 4e845d4e36
commit e48f50857e

View File

@ -301,7 +301,7 @@ someFunction(1, 2)
func someFunction(parameterWithDefault: Int = 12) {
// function body goes here
// if no arguments are passed to the function call,
// value of parameterWithDefault is 42
// value of parameterWithDefault is 12
}
someFunction(6) // parameterWithDefault is 6
someFunction() // parameterWithDefault is 12