Skip to content

Commit b37d7f3

Browse files
committed
Fix typos
1 parent dc408af commit b37d7f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ object Trees {
4949
* the existing tree transparently, assigning its `tpe` field,
5050
* provided it was `null` before.
5151
* - It is impossible to embed untyped trees in typed ones.
52-
* - Typed trees can be embedded untyped ones provided they are rooted
52+
* - Typed trees can be embedded in untyped ones provided they are rooted
5353
* in a TypedSplice node.
5454
* - Type checking an untyped tree should remove all embedded `TypedSplice`
5555
* nodes.
@@ -856,7 +856,7 @@ object Trees {
856856

857857
val cpy: TreeCopier
858858

859-
/** A class for copying trees. The copy methods avid creating a new tree
859+
/** A class for copying trees. The copy methods avoid creating a new tree
860860
* If all arguments stay the same.
861861
*
862862
* Note: Some of the copy methods take a context.

src/dotty/tools/dotc/transform/TreeTransform.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ object TreeTransforms {
4242
* the general dispatch overhead as opposed to the concrete work done in transformations. So that leaves us with
4343
* 0.2sec, or roughly 600M processor cycles.
4444
*
45-
* Now, to the amount of work that needs to be done. The codebase produces of about 250'000 trees after typechecking.
45+
* Now, to the amount of work that needs to be done. The codebase produces an average of about 250'000 trees after typechecking.
4646
* Transformations are likely to make this bigger so let's assume 300K trees on average. We estimate to have about 100
4747
* micro-transformations. Let's say 5 transformation groups of 20 micro-transformations each. (by comparison,
4848
* scalac has in excess of 20 phases, and most phases do multiple transformations). There are then 30M visits
@@ -208,7 +208,7 @@ object TreeTransforms {
208208
if (cls.getDeclaredMethods.exists(_.getName == name)) cls != classOf[TreeTransform]
209209
else hasRedefinedMethod(cls.getSuperclass, name)
210210

211-
/** Create an index array `next` of size one larger than teh size of `transforms` such that
211+
/** Create an index array `next` of size one larger than the size of `transforms` such that
212212
* for each index i, `next(i)` is the smallest index j such that
213213
*
214214
* i <= j

0 commit comments

Comments
 (0)