Skip to content

Commit b8203c8

Browse files
committed
Fix typos
1 parent 3bb27d4 commit b8203c8

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
@@ -48,7 +48,7 @@ object Trees {
4848
* the existing tree transparently, assigning its `tpe` field,
4949
* provided it was `null` before.
5050
* - It is impossible to embed untyped trees in typed ones.
51-
* - Typed trees can be embedded untyped ones provided they are rooted
51+
* - Typed trees can be embedded in untyped ones provided they are rooted
5252
* in a TypedSplice node.
5353
* - Type checking an untyped tree should remove all embedded `TypedSplice`
5454
* nodes.
@@ -855,7 +855,7 @@ object Trees {
855855

856856
val cpy: TreeCopier
857857

858-
/** A class for copying trees. The copy methods avid creating a new tree
858+
/** A class for copying trees. The copy methods avoid creating a new tree
859859
* If all arguments stay the same.
860860
*
861861
* 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)