Skip to content

Commit 1f0f8fd

Browse files
authored
Fix a small example so that the example matches the narrative within. (#2613)
Specifically, the narrative is talking about sending the variable 't' not the variable 'ns'.
1 parent be37f35 commit 1f0f8fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0430-transferring-parameters-and-results.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ func h() async {
213213
// This is a `sending` value.
214214
let ns = Nonsending()
215215

216-
// This also a `sending value.
216+
// This also a `sending` value.
217217
let ns2 = NonSendable()
218218

219219
// Since both ns and ns2 are disconnected, the region associated with
220220
// tuple is also disconnected and thus 't' is a `sending` value...
221221
let t = (ns, ns2)
222222

223223
// ... that can be sent across a concurrency boundary safely.
224-
await sendToMain(ns)
224+
await sendToMain(t)
225225
}
226226
```
227227

0 commit comments

Comments
 (0)