Skip to content

Commit c023f34

Browse files
authored
Fix an invalid syntax (#2706)
1 parent ef18a25 commit c023f34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

proposals/0461-async-function-isolation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,6 @@ The type of an `@execution(caller)` function declaration is an
327327
```swift
328328
class NotSendable { ... }
329329

330-
func useAsValue(_ ns: NotSendable) async { ... }
331-
332330
@MainActor let global: NotSendable = .init()
333331

334332
@execution(caller)
@@ -344,7 +342,7 @@ func callSendableClosure() async {
344342
await closure(global) // okay
345343
}
346344

347-
callSendableClosure(useAsValue)
345+
callSendableClosure()
348346
```
349347

350348
In the above code, the calls to `closure` from `callSendableClosure` run on the

0 commit comments

Comments
 (0)