Skip to content

Commit f23d1cd

Browse files
committed
Skip += fast path for literal segments, too
1 parent 94260a9 commit f23d1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringInterpolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public struct DefaultStringInterpolation: StringInterpolationProtocol {
8484
/// interpreting string interpolations.
8585
@inlinable
8686
public mutating func appendLiteral(_ literal: String) {
87-
_storage += literal
87+
literal.write(to: &self)
8888
}
8989

9090
/// Interpolates the given value's textual representation into the

0 commit comments

Comments
 (0)