Skip to content

Commit 3bf8a16

Browse files
authored
Merge pull request #4926 from seratch/fix-typo
Fix misspelled words in comments and error messages
2 parents 3e57b95 + fd2b180 commit 3bf8a16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+69
-69
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 emmited
629+
def args: List[Tree] = List.empty // those arguments to scala-defined annotations. they are never emmitted
630630
}
631631

632632
def assocsFromApply(tree: Tree): List[(Name, Tree)] = {
@@ -810,7 +810,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
810810
def annotations: List[Annotation] = toDenot(sym).annotations
811811
def companionModuleMembers: List[Symbol] = {
812812
// phase travel to exitingPickler: this makes sure that memberClassesOf only sees member classes,
813-
// not local classes of the companion module (E in the exmaple) that were lifted by lambdalift.
813+
// not local classes of the companion module (E in the example) that were lifted by lambdalift.
814814
if (linkedClass.isTopLevelModuleClass) /*exitingPickler*/ linkedClass.memberClasses
815815
else Nil
816816
}

compiler/src/dotty/tools/dotc/Driver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Driver extends DotClass {
118118
*
119119
* In most cases, you do not need a custom `Context` and should
120120
* instead use one of the other overloads of `process`. However,
121-
* the other overloads cannot be overriden, instead you
121+
* the other overloads cannot be overridden, instead you
122122
* should override this one which they call internally.
123123
*
124124
* Usage example: [[https://github.com/lampepfl/dotty/tree/master/test/test/OtherEntryPointsTest.scala]]

compiler/src/dotty/tools/dotc/ast/Positioned.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ abstract class Positioned extends DotClass with Product {
168168
def check(p: Any): Unit = p match {
169169
case p: Positioned =>
170170
assert(pos contains p.pos,
171-
s"""position error, parent position does not contain child positon
171+
s"""position error, parent position does not contain child position
172172
|parent = $this,
173173
|parent position = $pos,
174174
|child = $p,

compiler/src/dotty/tools/dotc/ast/tpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
10171017
lastParam.tpe match {
10181018
case defn.ArrayOf(el2) if el2 <:< el =>
10191019
// we have a JavaSeqLiteral with a more precise type
1020-
// we cannot construct a tree as JavaSeqLiteral infered to precise type
1020+
// we cannot construct a tree as JavaSeqLiteral inferred to precise type
10211021
// if we add typed than it would be both type-correct and
10221022
// will pass Ycheck
10231023
prefix ::: List(tpd.Typed(lastParam, TypeTree(defn.ArrayOf(el))))

compiler/src/dotty/tools/dotc/config/Config.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ object Config {
120120

121121
/** If this flag is set, it is checked that class type parameters are
122122
* only references with NoPrefix or ThisTypes as prefixes. This option
123-
* is usally disabled, because there are still some legitimate cases where
123+
* is usually disabled, because there are still some legitimate cases where
124124
* this can arise (e.g. for pos/Map.scala, in LambdaType.integrate).
125125
*/
126126
final val checkTypeParamRefs = false

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ class Definitions {
12331233
// Temporary measure, as long as we do not read these classes from Tasty.
12341234
// Scala-2 classes don't have NoInits set even if they are pure. We override this
12351235
// for Product and Serializable so that case classes can be pure. A full solution
1236-
// requiers that we read all Scala code from Tasty.
1236+
// requires that we read all Scala code from Tasty.
12371237
ProductClass.setFlag(NoInits)
12381238
SerializableClass.setFlag(NoInits)
12391239

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ object SymDenotations {
10681068
if (!canMatchInheritedSymbols && (owner ne inClass)) NoSymbol
10691069
else matchingDecl(inClass, owner.thisType)
10701070

1071-
/** All symbols overriden by this denotation. */
1071+
/** All symbols overridden by this denotation. */
10721072
final def allOverriddenSymbols(implicit ctx: Context): Iterator[Symbol] =
10731073
if (!canMatchInheritedSymbols) Iterator.empty
10741074
else overriddenFromType(owner.info)

compiler/src/dotty/tools/dotc/core/TypeErasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
350350
* - For a refined type scala.Array+[T]:
351351
* - if T is Nothing or Null, []Object
352352
* - otherwise, if T <: Object, []|T|
353-
* - otherwise, if T is a type paramter coming from Java, []Object
353+
* - otherwise, if T is a type parameter coming from Java, []Object
354354
* - otherwise, Object
355355
* - For a term ref p.x, the type <noprefix> # x.
356356
* - For a typeref scala.Any, scala.AnyVal or scala.Singleton: |java.lang.Object|

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 idenitfy
277+
final val SIGNED = 63 // A pair of a name and a signature, used to idenitify
278278
// possibly overloaded methods.
279279
}
280280
object NameTags extends NameTags

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ object Parsers {
262262
def deprecationWarning(msg: => Message, offset: Int = in.offset) =
263263
ctx.deprecationWarning(msg, source atPos Position(offset))
264264

265-
/** Issue an error at current offset taht input is incomplete */
265+
/** Issue an error at current offset that input is incomplete */
266266
def incompleteInputError(msg: => Message) =
267267
ctx.incompleteInputError(msg, source atPos Position(in.offset))
268268

compiler/src/dotty/tools/dotc/printing/Formatting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ object Formatting {
244244
* ```
245245
* found: List[Int]
246246
* required: List[T]
247-
* where: T is a type in the initalizer of value s which is an alias of
247+
* where: T is a type in the initializer of value s which is an alias of
248248
* String
249249
* ```
250250
*

compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
435435
else if (ownr.isAnonymousFunction) nextOuter("function")
436436
else if (isEmptyPrefix(ownr)) ""
437437
else if (ownr.isLocalDummy) showLocation(ownr.owner, "locally defined in")
438-
else if (ownr.isTerm && !ownr.is(Module | Method)) showLocation(ownr, "in the initalizer of")
438+
else if (ownr.isTerm && !ownr.is(Module | Method)) showLocation(ownr, "in the initializer of")
439439
else showLocation(ownr, "in")
440440
}
441441
recur(sym.owner, "")

compiler/src/dotty/tools/dotc/printing/Printer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class Printer {
3434
def changePrec(prec: Precedence)(op: => Text): Text =
3535
if (prec < this.prec) atPrec(prec) ("(" ~ op ~ ")") else atPrec(prec)(op)
3636

37-
/** The name, possibley with with namespace suffix if debugNames is set:
37+
/** The name, possibly with with namespace suffix if debugNames is set:
3838
* /L for local names, /V for other term names, /T for type names
3939
*/
4040
def nameString(name: Name): String

compiler/src/dotty/tools/dotc/transform/AugmentScala2Traits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object AugmentScala2Traits {
2424
/** This phase augments Scala2 traits with implementation classes and with additional members
2525
* needed for mixin composition.
2626
* These symbols would have been added between Unpickling and Mixin in the Scala2 pipeline.
27-
* Specifcally, it adds
27+
* Specifically, it adds
2828
*
2929
* - an implementation class which defines a trait constructor and trait method implementations
3030
* - trait setters for vals defined in traits

compiler/src/dotty/tools/dotc/transform/CheckStatic.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import reporting.diagnostic.messages.{MissingCompanionForStatic, StaticFieldsOnl
1212

1313
/** A transformer that check that requirements of Static fields\methods are implemented:
1414
* 1. Only objects can have members annotated with `@static`
15-
* 2. The fields annotated with `@static` should preceed any non-`@static` fields.
15+
* 2. The fields annotated with `@static` should precede any non-`@static` fields.
1616
* This ensures that we do not introduce surprises for users in initialization order.
1717
* 3. If a member `foo` of an `object C` is annotated with `@static`,
1818
* the companion class `C` is not allowed to define term members with name `foo`.
@@ -37,7 +37,7 @@ class CheckStatic extends MiniPhase {
3737
}
3838

3939
if (defn.isInstanceOf[ValDef] && hadNonStaticField) {
40-
ctx.error("@static fields should preceed non-static ones", defn.pos)
40+
ctx.error("@static fields should precede non-static ones", defn.pos)
4141
}
4242

4343
val companion = ctx.owner.companionClass

compiler/src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ object Erasure {
259259
cast(ref(defn.runtimeMethodRef(nme.toObjectArray)).appliedTo(tree), pt)
260260

261261
// When casting between two EVTs, we need to check which one underlies the other to determine
262-
// wheter u2evt or evt2u should be used.
262+
// whether u2evt or evt2u should be used.
263263
case (tp1 @ ErasedValueType(tycon1, underlying1), tp2 @ ErasedValueType(tycon2, underlying2)) =>
264264
if (tp1 <:< underlying2)
265265
// Cast EVT(tycon1, underlying1) to EVT(tycon2, EVT(tycon1, underlying1))

compiler/src/dotty/tools/dotc/transform/FirstTransform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class FirstTransform extends MiniPhase with InfoTransformer { thisPhase =>
103103
reorder(stats, Nil)
104104
}
105105

106-
/** elimiate self in Template */
106+
/** eliminate self in Template */
107107
override def transformTemplate(impl: Template)(implicit ctx: Context): Tree = {
108108
cpy.Template(impl)(self = EmptyValDef)
109109
}

compiler/src/dotty/tools/dotc/transform/PatternMatcherOld.scala.disabled

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class PatternMatcherOld extends MiniPhase with DenotTransformer {
169169
trait OptimizedCodegen extends CodegenCore {
170170
override def codegen: AbsCodegen = optimizedCodegen
171171

172-
// when we know we're targetting Option, do some inlining the optimizer won't do
172+
// when we know we're targeting Option, do some inlining the optimizer won't do
173173
// for example, `o.flatMap(f)` becomes `if (o == None) None else f(o.get)`, similarly for orElse and guard
174174
// this is a special instance of the advanced inlining optimization that takes a method call on
175175
// an object of a type that only has two concrete subclasses, and inlines both bodies, guarded by an if to distinguish the two cases
@@ -504,7 +504,7 @@ class PatternMatcherOld extends MiniPhase with DenotTransformer {
504504
* case d => <body>
505505
* }
506506
*
507-
* d inside <body> was to be substitued by x.
507+
* d inside <body> was to be substituted by x.
508508
*
509509
* In dotty, SubstOnlyTreeMakers instead generate normal ValDef,
510510
* and does not create a new substitution.

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ trait Implicits { self: Typer =>
10251025
* - otherwise, if a previous search was also successful, handle the ambiguity
10261026
* in `disambiguate`,
10271027
* - otherwise, continue the search with all candidates that are not strictly
1028-
* worse than the succesful candidate.
1028+
* worse than the successful candidate.
10291029
* If a trial failed:
10301030
* - if the query term is a `Not[T]` treat it as a success,
10311031
* - otherwise, if the failure is an ambiguity, try to heal it (see @healAmbiguous)

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
626626

627627
val gadtSyms = typer.gadtSyms(scrutType)
628628

629-
/** Try to match pattern `pat` against scrutinee reference `scrut`. If succesful add
629+
/** Try to match pattern `pat` against scrutinee reference `scrut`. If successful add
630630
* bindings for variables bound in this pattern to `bindingsBuf`.
631631
*/
632632
def reducePattern(bindingsBuf: mutable.ListBuffer[MemberDef], scrut: TermRef, pat: Tree): Boolean = {

compiler/src/dotty/tools/dotc/typer/RefChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ object RefChecks {
152152
* 4. Check that every member with an `override` modifier
153153
* overrides some other member.
154154
* TODO check that classes are not overridden
155-
* TODO This still needs to be cleaned up; the current version is a staright port of what was there
155+
* TODO This still needs to be cleaned up; the current version is a straight port of what was there
156156
* before, but it looks too complicated and method bodies are far too large.
157157
*/
158158
private def checkAllOverrides(clazz: Symbol)(implicit ctx: Context): Unit = {

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ class Typer extends Namer
954954
|position = ${tree.pos}, raw type = ${mt.toString}""") // !!! DEBUG. Eventually, convert to an error?
955955
}
956956
else if ((tree.tpt `eq` untpd.ImplicitEmptyTree) && mt.paramNames.isEmpty)
957-
// Note implicitness of function in target type sicne there are no method parameters that indicate it.
957+
// Note implicitness of function in target type since there are no method parameters that indicate it.
958958
TypeTree(defn.FunctionOf(Nil, mt.resType, isImplicit = true, isErased = false))
959959
else
960960
EmptyTree
@@ -2329,7 +2329,7 @@ class Typer extends Namer
23292329
*
23302330
* val x: AnyRef = f
23312331
*
2332-
* That's intentional, we want to fail here, otherwise some unsuccesful implicit searches
2332+
* That's intentional, we want to fail here, otherwise some unsuccessful implicit searches
23332333
* would go undetected.
23342334
*
23352335
* Examples for these cases are found in run/implicitFuns.scala and neg/i2006.scala.

compiler/src/dotty/tools/dotc/util/HashSet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class HashSet[T >: Null <: AnyRef](powerOfTwoInitialCapacity: Int, loadFactor: F
133133

134134
/** Privileged access: Add entry `x` at the last position where an unsuccsessful
135135
* `findEntryByHash` or `nextEntryByhash` operation returned. Needs to immediately
136-
* follow a `findEntryByhash` or `nextEntryByHash` operation that was unsucessful,
136+
* follow a `findEntryByhash` or `nextEntryByHash` operation that was unsuccessful,
137137
* i.e. that returned `null`.
138138
*/
139139
protected def addEntryAfterScan(x: T): T = addEntryAt(rover, x)

compiler/test-resources/repl/errmsgs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ scala> abstract class C { type T; val x: T; val s: Unit = { type T = String; var
4242
|required: T'
4343
|
4444
|where: T is a type in class C
45-
| T' is a type in the initalizer of value s which is an alias of String
45+
| T' is a type in the initializer of value s which is an alias of String
4646
1 | abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; }
4747
| ^
4848
|found: T(y)
4949
|required: T'
5050
|
51-
|where: T is a type in the initalizer of value s which is an alias of String
51+
|where: T is a type in the initializer of value s which is an alias of String
5252
| T' is a type in method f which is an alias of Int
5353
scala> class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr
5454
1 | class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr
@@ -79,4 +79,4 @@ scala> def foo1(x: => Int) = x _
7979
scala> def foo2(x: => Int): () => Int = x _
8080
1 | def foo2(x: => Int): () => Int = x _
8181
| ^^^
82-
|Only function types can be followed by _ but the current expression has type Int
82+
|Only function types can be followed by _ but the current expression has type Int

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
838838
* neg tests
839839
* =========
840840
* Neg tests are expected to generate a certain amount of errors - but not
841-
* crash the compiler. In each `.scala` file, you specifiy the line on which
841+
* crash the compiler. In each `.scala` file, you specify the line on which
842842
* the error will be generated, e.g:
843843
*
844844
* ```

compiler/test/dotty/tools/vulpix/TestGroup.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dotty.tools.vulpix
22

3-
/** Test groups are used to ensure that the ouput of tests do not overlap.
3+
/** Test groups are used to ensure that the output of tests do not overlap.
44
*
55
* It can be used to disambiguate ouputs of tests that test the same file but with different options as shown in the following example.
66
* compileFilesInDir("tests/pos", defaultOptions)(TestGroup("compileStdLib")) // will output in ./out/compileStdLib/...

compiler/test/dotty/tools/vulpix/VulpixMetaTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import TestConfiguration._
99

1010
/** Meta tests for the Vulpix test suite. This test follows the structure of
1111
* CompilationTests.scala. It is meant to be called from bash to diff with
12-
* output againts an expected result.
12+
* output against an expected result.
1313
*/
1414
@Category(Array(classOf[dotty.VulpixMetaTests]))
1515
class VulpixMetaTests extends ParallelTesting {

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 unsucessfull, otherwise a LinkToEntity or
19+
* Will return a `Tooltip` if unsucessful, otherwise a LinkToEntity or
2020
* LinkToExternal
2121
*/
2222
def lookup(entity: Entity, packages: Map[String, Package], query: String): Option[Entity] = {

docs/docs/internals/dotty-internals-1-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Typed trees contain not only the user-written code, but also semantic informatio
4747
* `Literal`: constants (e.g. integer constant 1)
4848
* `Typed`: type ascription (e.g. for widening, as in `(1: Any)`)
4949
* `NamedArg`: named arguments (can appear out-of-order in untyped trees, but will appear in-order in typed ones)
50-
* `Assign`: assignment. The node has a `lhs` and a `rhs`, but the `lhs` can be arbitrarly complicated (e.g. `(new C).f = 0`).
51-
* `If`: the condition in an if-expression can be arbitrarly complex (e.g. it can contain class definitions)
50+
* `Assign`: assignment. The node has a `lhs` and a `rhs`, but the `lhs` can be arbitrarily complicated (e.g. `(new C).f = 0`).
51+
* `If`: the condition in an if-expression can be arbitrarily complex (e.g. it can contain class definitions)
5252
* `Closure`: the free variables are stored in the `env` field, but are only accessible "around" the `LambdaLift` phase.
5353
* `Match` and `CaseDef`: pattern-matching trees. The `pat` field in `CaseDef` (the pattern) is, in turn, populated with a subset of trees like `Bind` and `Unapply`.
5454
* `Return`: return from a method. If the `from` field is empty, then we return from the closest enclosing method.

docs/docs/reference/changed/eta-expansion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Automatic eta expansion does not apply to "nullary" methods that take an empty p
2828
def next(): T
2929

3030
, a simple reference to `next` does not auto-convert to a
31-
function. One has to write explicitely `() => next()` to achieve that
31+
function. One has to write explicitly `() => next()` to achieve that
3232
(it's better to write it this way rather than `next _` because the latter
3333
will be deprecated).
3434

docs/docs/reference/enums/desugarEnums.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ this object or its members via `this` or a simple identifier is also illegal. Th
181181

182182
A normal case class which is not produced from an enum case is not allowed to extend
183183
`scala.Enum`. This ensures that the only cases of an enum are the ones that are
184-
explictly declared in it.
184+
explicitly declared in it.

docs/docs/reference/erased-terms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ m.turnedOn.turnedOn // ERROR
3434

3535
Note that in the code above the actual implicit arguments for `IsOff` are never used at runtime; they serve only to establish the right constraints at compile time.
3636
As these terms are never used at runtime there is not real need to have them around, but they still need to be
37-
present in some form in the generated code to be able to do separate compilation and retain binary compatiblity.
37+
present in some form in the generated code to be able to do separate compilation and retain binary compatibility.
3838

3939
How to define erased terms?
4040
-------------------------------
@@ -186,8 +186,8 @@ Rules
186186

187187

188188
5. Erasure Semantics
189-
* All `erased` paramters are removed from the function
190-
* All argument to `erased` paramters are not passed to the function
189+
* All `erased` parameters are removed from the function
190+
* All argument to `erased` parameters are not passed to the function
191191
* All `erased` definitions are removed
192192
* All `(erased T1, T2, ..., TN) => R` and `(implicit erased T1, T2, ..., TN) => R` become `() => R`
193193

@@ -199,5 +199,5 @@ Rules
199199

200200
7. Overriding
201201
* Member definitions overidding each other must both be `erased` or not be `erased`
202-
* `def foo(x: T): U` cannot be overriden by `def foo(erased x: T): U` an viceversa
202+
* `def foo(x: T): U` cannot be overridden by `def foo(erased x: T): U` an viceversa
203203

0 commit comments

Comments
 (0)