Skip to content

Commit d86d972

Browse files
Switch Dictionary.Values.subscript to use _modify (#19222)
1 parent 855fc74 commit d86d972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Dictionary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,9 +1442,9 @@ extension Dictionary {
14421442
get {
14431443
return _variant.assertingGet(at: position).value
14441444
}
1445-
mutableAddressWithNativeOwner {
1445+
_modify {
14461446
let address = _variant.pointerToValue(at: position)
1447-
return (address, Builtin.castToNativeObject(_variant.asNative._storage))
1447+
yield &address.pointee
14481448
}
14491449
}
14501450

0 commit comments

Comments
 (0)