We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b446d6b + 6bfe3da commit 77ec709Copy full SHA for 77ec709
stdlib/public/core/String.swift
@@ -591,10 +591,10 @@ extension Sequence where Element: StringProtocol {
591
internal func _joined(separator: String) -> String {
592
// A likely-under-estimate, but lets us skip some of the growth curve
593
// for large Sequences.
594
- let understimatedCap =
+ let underestimatedCap =
595
(1 &+ separator._guts.count) &* self.underestimatedCount
596
var result = ""
597
- result.reserveCapacity(understimatedCap)
+ result.reserveCapacity(underestimatedCap)
598
if separator.isEmpty {
599
for x in self {
600
result.append(x._ephemeralString)
0 commit comments