Skip to content

Commit 0d1d49d

Browse files
committed
[gardening] fix copy-pasta
1 parent bbe8fbc commit 0d1d49d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/Slice.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ extension Slice: MutableCollection where Base: MutableCollection {
309309
_precondition(
310310
slice.baseAddress == copy.baseAddress &&
311311
slice.count == copy.count,
312-
"Slice.withUnsafeMutableBufferPointer: replacing the buffer is not allowed")
312+
"Slice.withContiguousMutableStorageIfAvailable: replacing the buffer is not allowed")
313313
}
314314
return try body(&slice)
315315
}

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ extension Unsafe${Mutable}BufferPointer {
472472
let (oldBase, oldCount) = (self.baseAddress, self.count)
473473
defer {
474474
_debugPrecondition((oldBase, oldCount) == (self.baseAddress, self.count),
475-
"UnsafeMutableBufferPointer.withUnsafeMutableBufferPointer: replacing the buffer is not allowed")
475+
"UnsafeMutableBufferPointer.withContiguousMutableStorageIfAvailable: replacing the buffer is not allowed")
476476
}
477477
return try body(&self)
478478
}

0 commit comments

Comments
 (0)