Skip to content

Commit 5e0afd8

Browse files
liufengyunolhotak
andauthored
Apply suggestions from code review
Co-authored-by: Ondřej Lhoták <olhotak@uwaterloo.ca>
1 parent b5c2ffb commit 5e0afd8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ object Semantic:
194194
*
195195
* Ref -> Tree -> Value
196196
*
197-
* The first key is the value of `this` for the expression. We do not need
198-
* environment in the key, because the environment is always hot.
197+
* The first key is the value of `this` for the expression.
199198
*
200199
* We do not need the heap in the key, because the value of an expression
201200
* is only determined by the value of `this`. The heap is immutable: the
@@ -268,7 +267,7 @@ object Semantic:
268267

269268
/** Whether the current heap is different from the last heap?
270269
*
271-
* `changed == true` implies that the fixed point has been reached.
270+
* `changed == false` implies that the fixed point has been reached.
272271
*/
273272
private var changed: Boolean = false
274273

0 commit comments

Comments
 (0)