summaryrefslogtreecommitdiff
path: root/test/files/run/names-defaults.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/names-defaults.scala')
-rw-r--r--test/files/run/names-defaults.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala
index c364425ec9..7fb4a04546 100644
--- a/test/files/run/names-defaults.scala
+++ b/test/files/run/names-defaults.scala
@@ -239,7 +239,7 @@ object Test extends App {
// result type of default getters: parameter type, except if this one mentions any type
// parameter, in which case the result type is inferred. examples:
- // result type of default getter is "String => String". if it were infered, the compiler
+ // result type of default getter is "String => String". if it were inferred, the compiler
// would put "Nothing => Nothing", which is useless
def transform(s: String, f: String => String = identity _) = f(s)
println(transform("my text"))