Skip to content

Commit 17d3b01

Browse files
committed
Remove trailing double tabs.
1 parent 6d97905 commit 17d3b01

File tree

4 files changed

+78
-78
lines changed

4 files changed

+78
-78
lines changed

stdlib/public/core/BridgeObjectiveC.swift

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -476,33 +476,33 @@ public struct AutoreleasingUnsafeMutablePointer<Pointee /* TODO : class */>
476476
}
477477
}
478478

479-
/// Explicit construction from an UnsafeMutablePointer.
480-
///
481-
/// This is inherently unsafe; UnsafeMutablePointer assumes the
482-
/// referenced memory has +1 strong ownership semantics, whereas
483-
/// AutoreleasingUnsafeMutablePointer implies +0 semantics.
484-
///
485-
/// - Warning: Accessing `pointee` as a type that is unrelated to
486-
/// the underlying memory's bound type is undefined.
487-
@_transparent
488-
public init<U>(@_nonEphemeral _ from: UnsafeMutablePointer<U>) {
489-
self._rawValue = from._rawValue
490-
}
491-
492-
/// Explicit construction from an UnsafeMutablePointer.
493-
///
494-
/// Returns nil if `from` is nil.
495-
///
496-
/// This is inherently unsafe; UnsafeMutablePointer assumes the
497-
/// referenced memory has +1 strong ownership semantics, whereas
498-
/// AutoreleasingUnsafeMutablePointer implies +0 semantics.
499-
///
500-
/// - Warning: Accessing `pointee` as a type that is unrelated to
501-
/// the underlying memory's bound type is undefined.
502-
@_transparent
479+
/// Explicit construction from an UnsafeMutablePointer.
480+
///
481+
/// This is inherently unsafe; UnsafeMutablePointer assumes the
482+
/// referenced memory has +1 strong ownership semantics, whereas
483+
/// AutoreleasingUnsafeMutablePointer implies +0 semantics.
484+
///
485+
/// - Warning: Accessing `pointee` as a type that is unrelated to
486+
/// the underlying memory's bound type is undefined.
487+
@_transparent
488+
public init<U>(@_nonEphemeral _ from: UnsafeMutablePointer<U>) {
489+
self._rawValue = from._rawValue
490+
}
491+
492+
/// Explicit construction from an UnsafeMutablePointer.
493+
///
494+
/// Returns nil if `from` is nil.
495+
///
496+
/// This is inherently unsafe; UnsafeMutablePointer assumes the
497+
/// referenced memory has +1 strong ownership semantics, whereas
498+
/// AutoreleasingUnsafeMutablePointer implies +0 semantics.
499+
///
500+
/// - Warning: Accessing `pointee` as a type that is unrelated to
501+
/// the underlying memory's bound type is undefined.
502+
@_transparent
503503
public init?<U>(@_nonEphemeral _ from: UnsafeMutablePointer<U>?) {
504-
guard let unwrapped = from else { return nil }
505-
self.init(unwrapped)
504+
guard let unwrapped = from else { return nil }
505+
self.init(unwrapped)
506506
}
507507

508508
/// Explicit construction from a UnsafePointer.

stdlib/public/core/LazyCollection.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
public protocol LazyCollectionProtocol: Collection, LazySequenceProtocol
1414
where Elements: Collection { }
1515

16-
extension LazyCollectionProtocol {
17-
// Lazy things are already lazy
18-
@inlinable // protocol-only
19-
public var lazy: LazyCollection<Elements> {
20-
return elements.lazy
21-
}
22-
}
23-
24-
extension LazyCollectionProtocol where Elements: LazyCollectionProtocol {
25-
// Lazy things are already lazy
26-
@inlinable // protocol-only
27-
public var lazy: Elements {
28-
return elements
29-
}
16+
extension LazyCollectionProtocol {
17+
// Lazy things are already lazy
18+
@inlinable // protocol-only
19+
public var lazy: LazyCollection<Elements> {
20+
return elements.lazy
21+
}
22+
}
23+
24+
extension LazyCollectionProtocol where Elements: LazyCollectionProtocol {
25+
// Lazy things are already lazy
26+
@inlinable // protocol-only
27+
public var lazy: Elements {
28+
return elements
29+
}
3030
}
3131

3232
/// A collection containing the same elements as a `Base` collection,

stdlib/public/core/UnsafePointer.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -583,25 +583,25 @@ public struct UnsafeMutablePointer<Pointee>: _Pointer {
583583
self.init(mutating: unwrapped)
584584
}
585585

586-
/// Creates an immutable typed pointer referencing the same memory as the
587-
/// given mutable pointer.
588-
///
589-
/// - Parameter other: The pointer to convert.
590-
@_transparent
586+
/// Creates an immutable typed pointer referencing the same memory as the
587+
/// given mutable pointer.
588+
///
589+
/// - Parameter other: The pointer to convert.
590+
@_transparent
591591
public init(@_nonEphemeral _ other: UnsafeMutablePointer<Pointee>) {
592-
self._rawValue = other._rawValue
593-
}
592+
self._rawValue = other._rawValue
593+
}
594594

595-
/// Creates an immutable typed pointer referencing the same memory as the
596-
/// given mutable pointer.
597-
///
598-
/// - Parameter other: The pointer to convert. If `other` is `nil`, the
599-
/// result is `nil`.
600-
@_transparent
595+
/// Creates an immutable typed pointer referencing the same memory as the
596+
/// given mutable pointer.
597+
///
598+
/// - Parameter other: The pointer to convert. If `other` is `nil`, the
599+
/// result is `nil`.
600+
@_transparent
601601
public init?(@_nonEphemeral _ other: UnsafeMutablePointer<Pointee>?) {
602-
guard let unwrapped = other else { return nil }
603-
self.init(unwrapped)
604-
}
602+
guard let unwrapped = other else { return nil }
603+
self.init(unwrapped)
604+
}
605605

606606

607607
/// Allocates uninitialized memory for the specified number of instances of

stdlib/public/core/UnsafeRawPointer.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -235,31 +235,31 @@ public struct UnsafeRawPointer: _Pointer {
235235
_rawValue = unwrapped._rawValue
236236
}
237237

238-
/// Creates a new raw pointer from the given typed pointer.
239-
///
240-
/// Use this initializer to explicitly convert `other` to an `UnsafeRawPointer`
241-
/// instance. This initializer creates a new pointer to the same address as
242-
/// `other` and performs no allocation or copying.
243-
///
244-
/// - Parameter other: The typed pointer to convert.
245-
@_transparent
238+
/// Creates a new raw pointer from the given typed pointer.
239+
///
240+
/// Use this initializer to explicitly convert `other` to an `UnsafeRawPointer`
241+
/// instance. This initializer creates a new pointer to the same address as
242+
/// `other` and performs no allocation or copying.
243+
///
244+
/// - Parameter other: The typed pointer to convert.
245+
@_transparent
246246
public init<T>(@_nonEphemeral _ other: UnsafeMutablePointer<T>) {
247-
_rawValue = other._rawValue
248-
}
247+
_rawValue = other._rawValue
248+
}
249249

250-
/// Creates a new raw pointer from the given typed pointer.
251-
///
252-
/// Use this initializer to explicitly convert `other` to an `UnsafeRawPointer`
253-
/// instance. This initializer creates a new pointer to the same address as
254-
/// `other` and performs no allocation or copying.
255-
///
256-
/// - Parameter other: The typed pointer to convert. If `other` is `nil`, the
257-
/// result is `nil`.
258-
@_transparent
250+
/// Creates a new raw pointer from the given typed pointer.
251+
///
252+
/// Use this initializer to explicitly convert `other` to an `UnsafeRawPointer`
253+
/// instance. This initializer creates a new pointer to the same address as
254+
/// `other` and performs no allocation or copying.
255+
///
256+
/// - Parameter other: The typed pointer to convert. If `other` is `nil`, the
257+
/// result is `nil`.
258+
@_transparent
259259
public init?<T>(@_nonEphemeral _ other: UnsafeMutablePointer<T>?) {
260-
guard let unwrapped = other else { return nil }
261-
_rawValue = unwrapped._rawValue
262-
}
260+
guard let unwrapped = other else { return nil }
261+
_rawValue = unwrapped._rawValue
262+
}
263263

264264
/// Deallocates the previously allocated memory block referenced by this pointer.
265265
///

0 commit comments

Comments
 (0)