Skip to content

Commit 50af8b2

Browse files
committed
Fix assertion message
1 parent d7eae91 commit 50af8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringGutsRangeReplaceable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extension _StringGuts {
104104
defer {
105105
_sanityCheck(self.uniqueNativeUnusedCapacity != nil,
106106
"growth should produce uniqueness")
107-
_sanityCheck(self.uniqueNativeUnusedCapacity! >= self.count + otherCount,
107+
_sanityCheck(self.uniqueNativeUnusedCapacity! >= otherCount,
108108
"growth should produce enough capacity")
109109
}
110110

0 commit comments

Comments
 (0)