Skip to content

Fix some typos #14768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/ast/tpd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/reporting/messages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion library/src/scala/Selectable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down