Skip to content

Commit 0a4392f

Browse files
committed
In the lifetime annotation example, add an argument label.
To clarify that the annotation refers to the parameter name, not the label.
1 parent 5cd2fd3 commit 0a4392f

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
@@ -923,7 +923,7 @@ func foo(...)
923923

924924
```
925925
@lifetime(copy arg)
926-
func foo(arg: Arg1) -> R {}
926+
func foo(label arg: Arg1) -> R {}
927927
```
928928

929929
The `.component` qualifier is only relevant once we have component lifetimes. See the "Component lifetime" section below.

0 commit comments

Comments
 (0)