Skip to content

Commit 51832e8

Browse files
committed
Fix a typo in the dependent parameters example.
1 parent 9acaba8 commit 51832e8

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
@@ -307,7 +307,7 @@ We expect these implicit inferences to cover most cases, with the explicit form
307307
Normally, lifetime dependence is required when a nonescapable function result depends on an argument to that function. In some rare cases, however, a nonescapable function parameter may depend on another argument to that function. Consider a function with an `inout` parameter. The function body may reassign that parameter to a value that depends on another parameter. This is similar in principle to a result dependence.
308308

309309
```swift
310-
func mayReassign(span: dependsOn(a) inout [Int], to a: [Int]) {
310+
func mayReassign(span: dependsOn(a) inout Span<Int>, to a: [Int]) {
311311
span = a.span()
312312
}
313313
```

0 commit comments

Comments
 (0)