Skip to content

Commit dba5320

Browse files
amartini51glessard
authored andcommitted
Add missing parameter.
Here, as in UnsafeMutableRawPointer.storeBytes(of:toByteOffset:as:) "as" is an argument label and "type" is the parameter. Because the function body doesn't use this -- it's just for type information -- changing its name from "as" to "type" doesn't have any impact there.
1 parent 3e8d153 commit dba5320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/UnsafeRawBufferPointer.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ extension Unsafe${Mutable}RawBufferPointer {
410410
/// with `type`.
411411
@inlinable
412412
public func storeBytes<T>(
413-
of value: T, toByteOffset offset: Int = 0, as: T.Type
413+
of value: T, toByteOffset offset: Int = 0, as type: T.Type
414414
) {
415415
_debugPrecondition(offset >= 0, "${Self}.storeBytes with negative offset")
416416
_debugPrecondition(offset + MemoryLayout<T>.size <= self.count,

0 commit comments

Comments
 (0)