Skip to content

Commit 464fa5d

Browse files
committed
Fix typo in comment
1 parent fcc8791 commit 464fa5d

File tree

1 file changed

+3
-3
lines changed
  • compiler/src/dotty/tools/dotc/transform/init

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/init/Cache.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ import tpd.Tree
2222
*
2323
* The general skeleton for usage of the cache is as follows
2424
*
25-
* def analysis() = {
25+
* def analysis(entryExp: Expr) = {
2626
* def iterate(entryExp: Expr)(using Cache) =
2727
* eval(entryExp, initConfig)
2828
* if cache.hasChanged && noErrors then
2929
* cache.last = cache.current
3030
* cache.current = Empty
3131
* cache.changed = false
32-
* iterate(outputCache, emptyCache)
32+
* iterate(entryExp)
3333
* else
3434
* reportErrors
3535
*
3636
*
37-
* def eval(exp: Exp, config: Config)(using Cache) =
37+
* def eval(expr: Expr, config: Config)(using Cache) =
3838
* cache.cachedEval(config, expr) {
3939
* // Actual recursive evaluation of expression.
4040
* //

0 commit comments

Comments
 (0)