Skip to content

Commit 77ec709

Browse files
authored
Merge pull request swiftlang#21820 from freak4pc/sm/typo
2 parents b446d6b + 6bfe3da commit 77ec709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/String.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ extension Sequence where Element: StringProtocol {
591591
internal func _joined(separator: String) -> String {
592592
// A likely-under-estimate, but lets us skip some of the growth curve
593593
// for large Sequences.
594-
let understimatedCap =
594+
let underestimatedCap =
595595
(1 &+ separator._guts.count) &* self.underestimatedCount
596596
var result = ""
597-
result.reserveCapacity(understimatedCap)
597+
result.reserveCapacity(underestimatedCap)
598598
if separator.isEmpty {
599599
for x in self {
600600
result.append(x._ephemeralString)

0 commit comments

Comments
 (0)