diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala index 492e6d37ff07..b3f952e292a2 100644 --- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala @@ -782,7 +782,7 @@ object SymDenotations { } /** Is this a denotation of a class that does not have - either direct or inherited - - * initaliazion code? + * initialization code? */ def isNoInitsClass(implicit ctx: Context): Boolean = isClass && diff --git a/docs/docs/reference/changed-features/structural-types.md b/docs/docs/reference/changed-features/structural-types.md index de9d1c6bae6d..edd7adf6d333 100644 --- a/docs/docs/reference/changed-features/structural-types.md +++ b/docs/docs/reference/changed-features/structural-types.md @@ -70,7 +70,7 @@ differences. `Selectable` is a trait which declares the access operations. - Two access operations, `selectDynamic` and `applyDynamic` are shared - between both approches. In `Selectable`, `applyDynamic` also takes + between both approaches. In `Selectable`, `applyDynamic` also takes `ClassTag` indicating the method's formal parameter types. `Dynamic` comes with `updateDynamic`. diff --git a/library/src/scala/Tuple.scala b/library/src/scala/Tuple.scala index db983f55e835..3575dcb6c628 100644 --- a/library/src/scala/Tuple.scala +++ b/library/src/scala/Tuple.scala @@ -16,13 +16,13 @@ sealed trait Tuple extends Any { scala.runtime.Tuple.toIArray(this) /** Return a new tuple by prepending the element to `this` tuple. - * This opteration is O(this.size) + * This operation is O(this.size) */ inline def *: [H, This >: this.type <: Tuple] (x: H): H *: This = scala.runtime.Tuple.cons(x, this).asInstanceOf[H *: This] /** Return a new tuple by concatenating `this` tuple with `that` tuple. - * This opteration is O(this.size + that.size) + * This operation is O(this.size + that.size) */ inline def ++ [This >: this.type <: Tuple](that: Tuple): Concat[This, that.type] = scala.runtime.Tuple.concat(this, that).asInstanceOf[Concat[This, that.type]] @@ -200,7 +200,7 @@ sealed trait NonEmptyTuple extends Tuple { scala.runtime.Tuple.apply(this, 0).asInstanceOf[Head[This]] /** Get the tail of this tuple. - * This opteration is O(this.size) + * This operation is O(this.size) */ inline def tail[This >: this.type <: NonEmptyTuple]: Tail[This] = scala.runtime.Tuple.tail(this).asInstanceOf[Tail[This]] diff --git a/tasty/src/dotty/tools/tasty/TastyFormat.scala b/tasty/src/dotty/tools/tasty/TastyFormat.scala index f330254e4ff2..96ded6aa7df9 100644 --- a/tasty/src/dotty/tools/tasty/TastyFormat.scala +++ b/tasty/src/dotty/tools/tasty/TastyFormat.scala @@ -56,7 +56,7 @@ Standard-Section: "ASTs" TopLevelStat* Stat = Term ValOrDefDef - TYPEDEF Length NameRef (type_Term | Template) Modifier* -- modifiers type name (= type | bounds) | moifiers class name template + TYPEDEF Length NameRef (type_Term | Template) Modifier* -- modifiers type name (= type | bounds) | modifiers class name template IMPORT Length qual_Term Selector* -- import qual selectors ValOrDefDef = VALDEF Length NameRef type_Term rhs_Term? Modifier* -- modifiers val name : type (= rhs)? DEFDEF Length NameRef TypeParam* Params* returnType_Term