Skip to content

Commit 06cbc7e

Browse files
authored
Merge pull request #42318 from amartini51/UnsafeMutableRawBufferPointer_missing_parameter
Add missing parameter in `UnsafeMutableRawPointer`
2 parents 0a4b9da + 395a4b2 commit 06cbc7e

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)