Skip to content

Commit 0b0f779

Browse files
authored
typo fixed functional -> functions
small typo fixed, it's better undestood now I think.
1 parent eb81d98 commit 0b0f779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/NamedandDefaultArguments.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ object NamedandDefaultArguments
120120
myColor should equal(res0, res1, res2)
121121
}
122122

123-
/** Default parameters can be functional too:
123+
/** Default parameters can be functions too:
124124
*/
125125
def functionalDefaulParametersNamedandDefaultArguments(res0: Int, res1: Int) {
126126
def reduce(a: Int, f: (Int, Int) Int = _ + _): Int = f(a, a)

0 commit comments

Comments
 (0)