Skip to content

Commit 15ebec6

Browse files
authored
[stdlib] NFS: Restore documentation comment for Unsafe[Mutable]BufferPointer
Moves a `//` comment up above a `///` documentation comment, since the latter needs to be attached directly to the declaration or it won't be picked up as documentation.
1 parent 0b4e539 commit 15ebec6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
% for mutable in (True, False):
1515
% Self = 'UnsafeMutableBufferPointer' if mutable else 'UnsafeBufferPointer'
1616
% Mutable = 'Mutable' if mutable else ''
17+
// FIXME: rdar://18157434 - until this is fixed, this has to be fixed layout
18+
// to avoid a hang in Foundation, which has the following setup:
19+
// struct A { struct B { let x: UnsafeMutableBufferPointer<...> } let b: B }
1720
/// A nonowning collection interface to a buffer of ${Mutable.lower()}
1821
/// elements stored contiguously in memory.
1922
///
@@ -29,9 +32,6 @@
2932
/// instances stored in the underlying memory. However, initializing another
3033
/// collection with an `${Self}` instance copies the instances out of the
3134
/// referenced memory and into the new collection.
32-
// FIXME: rdar://18157434 - until this is fixed, this has to be fixed layout
33-
// to avoid a hang in Foundation, which has the following setup:
34-
// struct A { struct B { let x: UnsafeMutableBufferPointer<...> } let b: B }
3535
@frozen // unsafe-performance
3636
public struct Unsafe${Mutable}BufferPointer<Element> {
3737

0 commit comments

Comments
 (0)