Skip to content

Commit d46ebf8

Browse files
committed
Fix assertion message
1 parent 3b8df2c commit d46ebf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringGutsRangeReplaceable.swift

+1-1
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)