mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
docs: fix typos in doc comments and DocC article
This commit is contained in:
1 parent
6c12132eac
commit
62a08e503e
4 files changed
+6
-6
No files matched your search
@@ -120,7 +120,7 @@ where Header: ~Copyable
|
||||
/// that memory. The underlying storage will not be freed by this buffer;
|
||||
/// it is the responsibility of the caller. The header pointer and
|
||||
/// underlying storage are returned separately, to handle cases where
|
||||
/// the alignment of the elements is greater than than of the header.
|
||||
/// the alignment of the elements is greater than that of the header.
|
||||
@_alwaysEmitIntoClient
|
||||
public consuming func leakStorage() -> (
|
||||
pointer: UnsafeMutablePointer<Header>,
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ TrailingArray.withTemporaryValue(header: Coordinates(numPoints: 3), repeating: P
|
||||
```
|
||||
|
||||
### Interoperability with unsafe C APIs
|
||||
``TrailingArray`` provides facilities for working with the underlying unsafe pointers, which can be useful when interoperating with C APIs. ``TrailingArray`` can take ownership of a heap-allocated pointer to its `Header` type (such as one might get back from a C API api) using `init(consuming:)`:
|
||||
``TrailingArray`` provides facilities for working with the underlying unsafe pointers, which can be useful when interoperating with C APIs. ``TrailingArray`` can take ownership of a heap-allocated pointer to its `Header` type (such as one might get back from a C API) using `init(consuming:)`:
|
||||
|
||||
```swift
|
||||
init(consuming pointer: UnsafeMutablePointer<Header>)
|
||||
|
||||
Reference in new issue
Block a user