Skip to content

Commit b01cd1e

Browse files
committed
Typo in example from "Depending on an escapable"
1 parent d7c1ac7 commit b01cd1e

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
@@ -496,7 +496,7 @@ extension Storage {
496496
let storage = Storage(...)
497497
storage.withUnsafeBufferPointer { buffer in
498498
let span = Span(unsafeBaseAddress: buffer.baseAddress!, count: buffer.count)
499-
decode(span!) // ✅ Safe: 'buffer' is always valid within the closure.
499+
decode(span) // ✅ Safe: 'buffer' is always valid within the closure.
500500
}
501501
```
502502

0 commit comments

Comments
 (0)