Skip to content

Commit eefe529

Browse files
authored
Merge pull request #2243 from maiyama18/fix-isolation-region-notations
SE-0414 : Minor fix of isolation region notations
2 parents 579cd49 + a47e4fa commit eefe529

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

proposals/0414-region-based-isolation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Now lets apply these rules to some specific examples in Swift code:
275275
let closure = { useInOut(&x) }
276276
// Regions: [(x, closure)]
277277
let y = NonSendable()
278-
// Regions: [(x, closure), y]
278+
// Regions: [(x, closure), (y)]
279279
x = y
280280
// Regions: [(x, closure, y)]
281281
}
@@ -306,7 +306,7 @@ Now lets apply these rules to some specific examples in Swift code:
306306
let x = NonSendableStruct()
307307
// Regions: [(x)]
308308
let y = NonSendable()
309-
// Regions: [x, y]
309+
// Regions: [(x), (y)]
310310
x.field = y
311311
// Regions: [(x, y)]
312312
}
@@ -337,7 +337,7 @@ Now lets apply these rules to some specific examples in Swift code:
337337
func transfer(x: NonSendable, y: NonSendable) {
338338
// Regions: [(x, y)]
339339
let z = NonSendable()
340-
// Regions: [(x, y), z]
340+
// Regions: [(x, y), (z)]
341341
f(x, z)
342342
// Regions: [(x, y, z)]
343343
}

0 commit comments

Comments
 (0)