Skip to content

Commit a513222

Browse files
Merge pull request #4931 from dotty-staging/fix-more-typos
Fix typos from #4926
2 parents 17e8921 + eb3760b commit a513222

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
265265
} else {
266266
// println(i"not an enum: ${t.symbol} / ${t.symbol.denot.owner} / ${t.symbol.denot.owner.isTerm} / ${t.symbol.denot.owner.flags}")
267267
assert(toDenot(t.symbol).name.is(DefaultGetterName),
268-
s"${toDenot(t.symbol).name.debugString}") // this should be default getter. do not emmit.
268+
s"${toDenot(t.symbol).name.debugString}") // this should be default getter. do not emit.
269269
}
270270
case t: SeqLiteral =>
271271
val arrAnnotV: AnnotationVisitor = av.visitArray(name)
@@ -626,7 +626,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
626626

627627
def symbol: Symbol = a.tree.symbol
628628

629-
def args: List[Tree] = List.empty // those arguments to scala-defined annotations. they are never emmitted
629+
def args: List[Tree] = List.empty // those arguments to scala-defined annotations. they are never emitted
630630
}
631631

632632
def assocsFromApply(tree: Tree): List[(Name, Tree)] = {
@@ -986,7 +986,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
986986
def summaryString: String = tp.showSummary
987987

988988
def params: List[Symbol] =
989-
Nil // backend uses this to emmit annotations on parameter lists of forwarders
989+
Nil // backend uses this to emit annotations on parameter lists of forwarders
990990
// to static methods of companion class
991991
// in Dotty this link does not exists: there is no way to get from method type
992992
// to inner symbols of DefDef

compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ object TastyFormat {
274274

275275
final val OBJECTCLASS = 23 // The name of an object class (or: module class) `<name>$`.
276276

277-
final val SIGNED = 63 // A pair of a name and a signature, used to idenitify
277+
final val SIGNED = 63 // A pair of a name and a signature, used to identify
278278
// possibly overloaded methods.
279279
}
280280
object NameTags extends NameTags

doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import model._
1616
trait MemberLookup {
1717
/** Performs a lookup based on the provided (pruned) query string
1818
*
19-
* Will return a `Tooltip` if unsucessful, otherwise a LinkToEntity or
19+
* Will return a `Tooltip` if unsuccessful, otherwise a LinkToEntity or
2020
* LinkToExternal
2121
*/
2222
def lookup(entity: Entity, packages: Map[String, Package], query: String): Option[Entity] = {

tests/pos/sams.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object test {
6969
// synthesizeSAMFunction where the sam type is not fully defined
7070
class T {
7171
trait F[T, U] { def apply(x: T): U }
72-
// this is an inner trait, that will recieve an abstract $outer pointer. Not a SAM.
72+
// this is an inner trait, that will receive an abstract $outer pointer. Not a SAM.
7373
def app[T, U](x: T)(f: F[T, U]): U = f(x)
7474
app(1)(x => List(x))
7575
}

0 commit comments

Comments
 (0)