Skip to content

Commit 671d7df

Browse files
committed
Use the staticText form here for symmetry
1 parent c5e54c8 commit 671d7df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftProtobuf/JSONEncoder.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ internal struct JSONEncoder {
133133
if let s = separator {
134134
data.append(s)
135135
}
136-
data.append(asciiDoubleQuote)
137-
data.append(asciiOpenSquareBracket)
136+
append(staticText: "\"[")
138137
data.append(contentsOf: name.utf8)
139138
append(staticText: "]\":")
140139
separator = asciiComma

0 commit comments

Comments
 (0)