aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-10-14 08:37:03 +0200
committerGitHub <noreply@github.com>2016-10-14 08:37:03 +0200
commit8bfaadaae141e83db7f515b042fcee26ed0e54fd (patch)
tree26e9773c3c9da3a384895680941399aa1e1e311a /src/dotty/tools/dotc/transform
parent6095454e05ba4446fca446c5b53e80180d69b127 (diff)
parentddbbb8350ec210d63b552ee133cf872ff95eaea2 (diff)
downloaddotty-8bfaadaae141e83db7f515b042fcee26ed0e54fd.tar.gz
dotty-8bfaadaae141e83db7f515b042fcee26ed0e54fd.tar.bz2
dotty-8bfaadaae141e83db7f515b042fcee26ed0e54fd.zip
Merge pull request #1565 from Blaisorblade/warnings
Small fixes to some warnings/comment typos
Diffstat (limited to 'src/dotty/tools/dotc/transform')
-rw-r--r--src/dotty/tools/dotc/transform/TreeTransform.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/transform/TreeTransform.scala b/src/dotty/tools/dotc/transform/TreeTransform.scala
index 52a3ad94e..45fa3d607 100644
--- a/src/dotty/tools/dotc/transform/TreeTransform.scala
+++ b/src/dotty/tools/dotc/transform/TreeTransform.scala
@@ -42,7 +42,7 @@ object TreeTransforms {
* the general dispatch overhead as opposed to the concrete work done in transformations. So that leaves us with
* 0.2sec, or roughly 600M processor cycles.
*
- * Now, to the amount of work that needs to be done. The codebase produces of about 250'000 trees after typechecking.
+ * Now, to the amount of work that needs to be done. The codebase produces an average of about 250'000 trees after typechecking.
* Transformations are likely to make this bigger so let's assume 300K trees on average. We estimate to have about 100
* micro-transformations. Let's say 5 transformation groups of 20 micro-transformations each. (by comparison,
* scalac has in excess of 20 phases, and most phases do multiple transformations). There are then 30M visits
@@ -208,7 +208,7 @@ object TreeTransforms {
if (cls.getDeclaredMethods.exists(_.getName == name)) cls != classOf[TreeTransform]
else hasRedefinedMethod(cls.getSuperclass, name)
- /** Create an index array `next` of size one larger than teh size of `transforms` such that
+ /** Create an index array `next` of size one larger than the size of `transforms` such that
* for each index i, `next(i)` is the smallest index j such that
*
* i <= j