Skip to content

Commit 21b572f

Browse files
authored
Merge pull request #14768 from dotty-staging/fix-typos
Fix some typos
2 parents cb824bf + f2a55a1 commit 21b572f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
571571
else foldOver(sym, tree)
572572
}
573573

574-
/** The owner to be used in a local context when traversin a tree */
574+
/** The owner to be used in a local context when traversing a tree */
575575
def localOwner(tree: Tree)(using Context): Symbol =
576576
val sym = tree.symbol
577577
(if sym.is(PackageVal) then sym.moduleClass else sym).orElse(ctx.owner)

compiler/src/dotty/tools/dotc/reporting/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@ import transform.SymUtils._
25162516
def defKind = if tree.symbol.is(Module) then "object" else "class"
25172517
def msg = s"Case $defKind definitions are not allowed in inline methods or quoted code. Use a normal $defKind instead."
25182518
def explain =
2519-
em"""Case class/object definitions generate a considerable fooprint in code size.
2519+
em"""Case class/object definitions generate a considerable footprint in code size.
25202520
|Inlining such definition would multiply this footprint for each call site.
25212521
|""".stripMargin
25222522
}

library/src/scala/Selectable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object Selectable:
4747
* on the precise `paramTypes`. Subtypes of `WithoutPreciseParameterTypes`
4848
* can have more relaxed subtyping rules for refinements. They do not need
4949
* the additional restriction that the signatures of the refinement and
50-
* the definition that implements the refinment must match.
50+
* the definition that implements the refinement must match.
5151
*/
5252
@since("3.1")
5353
trait WithoutPreciseParameterTypes extends Selectable

0 commit comments

Comments
 (0)