Skip to content

Commit d414ece

Browse files
Switch ManagedBuffer.header to use _modify (#19226)
1 parent 3ce71a3 commit d414ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/ManagedBuffer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ public struct ManagedBufferPointer<Header, Element> : Equatable {
244244
addressWithNativeOwner {
245245
return (UnsafePointer(_headerPointer), _nativeBuffer)
246246
}
247-
mutableAddressWithNativeOwner {
248-
return (_headerPointer, _nativeBuffer)
247+
_modify {
248+
yield &_headerPointer.pointee
249249
}
250250
}
251251

0 commit comments

Comments
 (0)