From f2a55a130bfce040354888e5912258107180c748 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 24 Mar 2022 11:18:42 +0100 Subject: [PATCH] Fix some typos --- compiler/src/dotty/tools/dotc/ast/tpd.scala | 2 +- compiler/src/dotty/tools/dotc/reporting/messages.scala | 2 +- library/src/scala/Selectable.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/ast/tpd.scala b/compiler/src/dotty/tools/dotc/ast/tpd.scala index 37fc7ef1bee4..9c4f91be3c5c 100644 --- a/compiler/src/dotty/tools/dotc/ast/tpd.scala +++ b/compiler/src/dotty/tools/dotc/ast/tpd.scala @@ -571,7 +571,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo { else foldOver(sym, tree) } - /** The owner to be used in a local context when traversin a tree */ + /** The owner to be used in a local context when traversing a tree */ def localOwner(tree: Tree)(using Context): Symbol = val sym = tree.symbol (if sym.is(PackageVal) then sym.moduleClass else sym).orElse(ctx.owner) diff --git a/compiler/src/dotty/tools/dotc/reporting/messages.scala b/compiler/src/dotty/tools/dotc/reporting/messages.scala index 32773ba7a041..a008c595a913 100644 --- a/compiler/src/dotty/tools/dotc/reporting/messages.scala +++ b/compiler/src/dotty/tools/dotc/reporting/messages.scala @@ -2507,7 +2507,7 @@ import transform.SymUtils._ def defKind = if tree.symbol.is(Module) then "object" else "class" def msg = s"Case $defKind definitions are not allowed in inline methods or quoted code. Use a normal $defKind instead." def explain = - em"""Case class/object definitions generate a considerable fooprint in code size. + em"""Case class/object definitions generate a considerable footprint in code size. |Inlining such definition would multiply this footprint for each call site. |""".stripMargin } diff --git a/library/src/scala/Selectable.scala b/library/src/scala/Selectable.scala index 536c760988ab..51dcc4af549f 100644 --- a/library/src/scala/Selectable.scala +++ b/library/src/scala/Selectable.scala @@ -47,7 +47,7 @@ object Selectable: * on the precise `paramTypes`. Subtypes of `WithoutPreciseParameterTypes` * can have more relaxed subtyping rules for refinements. They do not need * the additional restriction that the signatures of the refinement and - * the definition that implements the refinment must match. + * the definition that implements the refinement must match. */ @since("3.1") trait WithoutPreciseParameterTypes extends Selectable