Skip to content

Commit b36751b

Browse files
committed
fix: add missing whitespace in FIXME comment
1 parent dd60cfd commit b36751b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stdlib/public/core/Span/RawSpan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ extension RawSpan {
426426
@available(SwiftStdlib 6.1, *)
427427
extension RawSpan {
428428

429-
//FIXME: mark closure parameter as non-escaping
429+
// FIXME: mark closure parameter as non-escaping
430430
/// Calls the given closure with a pointer to the underlying bytes of
431431
/// the viewed contiguous storage.
432432
///

stdlib/public/core/Span/Span.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ extension Span where Element: ~Copyable {
9595
public init(
9696
_unsafeElements buffer: borrowing UnsafeBufferPointer<Element>
9797
) {
98-
let baseAddress = buffer.baseAddress //FIXME: rdar://138665760
98+
let baseAddress = buffer.baseAddress // FIXME: rdar://138665760
9999
_precondition(
100100
((Int(bitPattern: baseAddress) &
101101
(MemoryLayout<Element>.alignment &- 1)) == 0),
@@ -204,7 +204,7 @@ extension Span where Element: BitwiseCopyable {
204204
public init(
205205
_unsafeBytes buffer: borrowing UnsafeRawBufferPointer
206206
) {
207-
let baseAddress = buffer.baseAddress //FIXME: rdar://138665760
207+
let baseAddress = buffer.baseAddress // FIXME: rdar://138665760
208208
_precondition(
209209
((Int(bitPattern: baseAddress) &
210210
(MemoryLayout<Element>.alignment &- 1)) == 0),
@@ -448,7 +448,7 @@ extension Span where Element: ~Copyable {
448448
@_disallowFeatureSuppression(NonescapableTypes)
449449
@_alwaysEmitIntoClient
450450
public subscript(_ position: Index) -> Element {
451-
//FIXME: change to unsafeRawAddress when ready
451+
// FIXME: change to unsafeRawAddress when ready
452452
unsafeAddress {
453453
_precondition(indices.contains(position), "Index out of bounds")
454454
return _unsafeAddressOfElement(unchecked: position)
@@ -468,7 +468,7 @@ extension Span where Element: ~Copyable {
468468
@unsafe
469469
@_alwaysEmitIntoClient
470470
public subscript(unchecked position: Index) -> Element {
471-
//FIXME: change to unsafeRawAddress when ready
471+
// FIXME: change to unsafeRawAddress when ready
472472
unsafeAddress {
473473
_unsafeAddressOfElement(unchecked: position)
474474
}

0 commit comments

Comments
 (0)