diff --git a/compiler/src/dotty/tools/dotc/ast/Trees.scala b/compiler/src/dotty/tools/dotc/ast/Trees.scala index 07ab08c8cb71..b6e730c5fd96 100644 --- a/compiler/src/dotty/tools/dotc/ast/Trees.scala +++ b/compiler/src/dotty/tools/dotc/ast/Trees.scala @@ -161,7 +161,7 @@ object Trees { case _ => NoType } - /** The denotation referred tno by this tree. + /** The denotation referred to by this tree. * Defined for `DenotingTree`s and `ProxyTree`s, NoDenotation for other * kinds of trees */ diff --git a/compiler/src/dotty/tools/dotc/core/Names.scala b/compiler/src/dotty/tools/dotc/core/Names.scala index a45053202793..7a5cf6f6f249 100644 --- a/compiler/src/dotty/tools/dotc/core/Names.scala +++ b/compiler/src/dotty/tools/dotc/core/Names.scala @@ -288,7 +288,7 @@ object Names { } } - /** A simple name is essentiall an interned string */ + /** A simple name is essentially an interned string */ final class SimpleName(val start: Int, val length: Int, @sharable private[Names] var next: SimpleName) extends TermName { // `next` is @sharable because it is only modified in the synchronized block of termName. diff --git a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala index 6b1245493a84..1b7c7461b338 100644 --- a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala +++ b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala @@ -210,7 +210,7 @@ class SymbolLoaders { Stats.record("package scopes") /** The scope of a package. This is different from a normal scope - * in three aspects: + * in two aspects: * * 1. Names of scope entries are kept in mangled form. * 2. Some function types in the `scala` package are synthesized. diff --git a/compiler/src/dotty/tools/dotc/core/Symbols.scala b/compiler/src/dotty/tools/dotc/core/Symbols.scala index 25de31858e70..2a37714a5de9 100644 --- a/compiler/src/dotty/tools/dotc/core/Symbols.scala +++ b/compiler/src/dotty/tools/dotc/core/Symbols.scala @@ -720,7 +720,7 @@ object Symbols { /** Makes all denotation operations available on symbols */ implicit def toDenot(sym: Symbol)(implicit ctx: Context): SymDenotation = sym.denot - /** Makes all class denotations available on class symbols */ + /** Makes all class denotation operations available on class symbols */ implicit def toClassDenot(cls: ClassSymbol)(implicit ctx: Context): ClassDenotation = cls.classDenot /** The Definitions object */