[TrailingElementsModule] Rename "takePointer" to "leakStorage", which is more descriptive

This commit is contained in:
Doug Gregor committed 2025-09-08 18:56:51 -07:00
1 parent b6208a9836
commit e08ba6087d
3 files changed
+12 -12

No files matched your search

@@ -67,10 +67,10 @@ TrailingArray.withTemporaryValue(header: Coordinates(numPoints: 3), repeating: P
init(consuming pointer: UnsafeMutablePointer<Header>)
```
or give up its pointer to hand off to C with `takePointer`:
or give up its pointer to hand off to C with `leakStorage`:
```swift
consuming func takePointer() -> UnsafeMutablePointer<Header>
consuming func leakStorage() -> UnsafeMutablePointer<Header>
```
Unsafe pointers can be accessed via the `withUnsafeMutablePointer*` family of methods to access a pointer to the header, the trailing elements, or both.