Skip to content

Commit c83feb7

Browse files
Update 0414-region-based-isolation.md
Updating example to clarify func 'caller' and 'callee' (callee was used twice)
1 parent 80c3616 commit c83feb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0414-region-based-isolation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ func nonIsolatedCaller(_ x: NonSendable) async {
610610
```
611611

612612
In the example above, `x` is in a task isolated region. Since
613-
`nonIsolatedCallee` will execute on the same task as `nonIsolatedCallee`, they
613+
`nonIsolatedCallee` will execute on the same task as `nonIsolatedCaller`, they
614614
are in the same isolation domain and a transfer does not occur. In contrast,
615615
`transferToMainActor` is in a different isolation domain so passing `x` to it is
616616
a transfer resulting in an error.

0 commit comments

Comments
 (0)