Skip to content

Commit f2a55a1

Browse files
committed
Fix some typos
1 parent 1d4b6c0 commit f2a55a1

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
@@ -2507,7 +2507,7 @@ import transform.SymUtils._
25072507
def defKind = if tree.symbol.is(Module) then "object" else "class"
25082508
def msg = s"Case $defKind definitions are not allowed in inline methods or quoted code. Use a normal $defKind instead."
25092509
def explain =
2510-
em"""Case class/object definitions generate a considerable fooprint in code size.
2510+
em"""Case class/object definitions generate a considerable footprint in code size.
25112511
|Inlining such definition would multiply this footprint for each call site.
25122512
|""".stripMargin
25132513
}

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)