Merge pull request #483 from Ericsens/patch-1

Wrong Number
This commit is contained in:
梁杰
2015-09-27 15:50:45 +08:00

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