Skip to content

Commit 6c80aca

Browse files
committed
Fix OwnedSpan ~Escapable typo.
1 parent 1859b98 commit 6c80aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/NNNN-lifetime-dependency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ struct View<Element>: ~Escapable {
978978
A scoped dependence normally cannot escape the lexical scope of its source variable. It may, however, be convenient to escape the source of that dependence along with any values that dependent on its lifetime. This could be done by moving the ownership of the source into a structure that preserves any dependence relationships. A function that returns a nonescapable type cannot currently depend on the scope of a consuming parameter. But we could lift that restriction provided that the consumed argument is moved into the return value, and that the return type preserves any dependence on that value:
979979

980980
```swift
981-
struct OwnedSpan<T>: ~Copyable & ~Escapable{
981+
struct OwnedSpan<T>: ~Copyable {
982982
let owner: any ~Copyable
983983
let span: dependsOn(scope owner) Span<T>
984984

0 commit comments

Comments
 (0)