Skip to content

Commit fe38137

Browse files
committed
Refine documentation
1 parent aaffb11 commit fe38137

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ object Effects {
2929
def toEffs: Effects = Vector(this)
3030
}
3131

32-
/** An effect means that a value that's possibly under initialization
32+
/** A promotion effect means that a value that's possibly under initialization
3333
* is promoted from the initializing world to the fully-initialized world.
3434
*
3535
* Essentially, this effect enforces that the object pointed to by
36-
* `potential` is fully initialized.
36+
* `potential` is transitively initialized.
3737
*
3838
* This effect is trigger in several scenarios:
3939
* - a potential is used as arguments to method calls or new-expressions

0 commit comments

Comments
 (0)