Skip to content

Commit 505d55c

Browse files
committed
Add type parameter to make code match doc comment
1 parent a5d92bc commit 505d55c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

stdlib/public/core/Span/MutableRawSpan.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ extension MutableRawSpan {
238238
@unsafe
239239
@_alwaysEmitIntoClient
240240
public func unsafeLoad<T>(
241-
fromByteOffset offset: Int = 0, as: T.Type
241+
fromByteOffset offset: Int = 0, as type: T.Type
242242
) -> T {
243243
_precondition(
244244
UInt(bitPattern: offset) <= UInt(bitPattern: _count) &&
@@ -269,7 +269,7 @@ extension MutableRawSpan {
269269
@unsafe
270270
@_alwaysEmitIntoClient
271271
public func unsafeLoad<T>(
272-
fromUncheckedByteOffset offset: Int, as: T.Type
272+
fromUncheckedByteOffset offset: Int, as type: T.Type
273273
) -> T {
274274
unsafe _start().load(fromByteOffset: offset, as: T.self)
275275
}
@@ -293,7 +293,7 @@ extension MutableRawSpan {
293293
@unsafe
294294
@_alwaysEmitIntoClient
295295
public func unsafeLoadUnaligned<T: BitwiseCopyable>(
296-
fromByteOffset offset: Int = 0, as: T.Type
296+
fromByteOffset offset: Int = 0, as type: T.Type
297297
) -> T {
298298
_precondition(
299299
UInt(bitPattern: offset) <= UInt(bitPattern: _count) &&
@@ -323,7 +323,7 @@ extension MutableRawSpan {
323323
@unsafe
324324
@_alwaysEmitIntoClient
325325
public func unsafeLoadUnaligned<T: BitwiseCopyable>(
326-
fromUncheckedByteOffset offset: Int, as: T.Type
326+
fromUncheckedByteOffset offset: Int, as type: T.Type
327327
) -> T {
328328
unsafe _start().loadUnaligned(fromByteOffset: offset, as: T.self)
329329
}

stdlib/public/core/Span/RawSpan.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ extension RawSpan {
561561
@unsafe
562562
@_alwaysEmitIntoClient
563563
public func unsafeLoad<T>(
564-
fromByteOffset offset: Int = 0, as: T.Type
564+
fromByteOffset offset: Int = 0, as type: T.Type
565565
) -> T {
566566
_precondition(
567567
UInt(bitPattern: offset) <= UInt(bitPattern: _count) &&
@@ -592,7 +592,7 @@ extension RawSpan {
592592
@unsafe
593593
@_alwaysEmitIntoClient
594594
public func unsafeLoad<T>(
595-
fromUncheckedByteOffset offset: Int, as: T.Type
595+
fromUncheckedByteOffset offset: Int, as type: T.Type
596596
) -> T {
597597
unsafe _start().load(fromByteOffset: offset, as: T.self)
598598
}
@@ -616,7 +616,7 @@ extension RawSpan {
616616
@unsafe
617617
@_alwaysEmitIntoClient
618618
public func unsafeLoadUnaligned<T: BitwiseCopyable>(
619-
fromByteOffset offset: Int = 0, as: T.Type
619+
fromByteOffset offset: Int = 0, as type: T.Type
620620
) -> T {
621621
_precondition(
622622
UInt(bitPattern: offset) <= UInt(bitPattern: _count) &&
@@ -648,7 +648,7 @@ extension RawSpan {
648648
@unsafe
649649
@_alwaysEmitIntoClient
650650
public func unsafeLoadUnaligned<T: BitwiseCopyable>(
651-
fromUncheckedByteOffset offset: Int, as: T.Type
651+
fromUncheckedByteOffset offset: Int, as type: T.Type
652652
) -> T {
653653
unsafe _start().loadUnaligned(fromByteOffset: offset, as: T.self)
654654
}

0 commit comments

Comments
 (0)