File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ extension Sequence where Element == ASCIICharacter {
253253 . joined ( separator: separator. rawData)
254254 )
255255 return ASCIIString (
256- guaranteedASCII : joinedStr,
256+ unsafe : joinedStr,
257257 rawData: joinedData
258258 )
259259 }
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ extension Sequence where Element == ASCIIString {
182182 let joinedStr = map { $0. stringValue } . joined ( )
183183 let joinedData = Data ( map { $0. rawData } . joined ( ) )
184184 return ASCIIString (
185- guaranteedASCII : joinedStr,
185+ unsafe : joinedStr,
186186 rawData: joinedData
187187 )
188188 }
@@ -198,7 +198,7 @@ extension Sequence where Element == ASCIIString {
198198 . joined ( separator: separator. rawData)
199199 )
200200 return ASCIIString (
201- guaranteedASCII : joinedStr,
201+ unsafe : joinedStr,
202202 rawData: joinedData
203203 )
204204 }
@@ -208,8 +208,8 @@ extension Sequence where Element == ASCIIString {
208208
209209extension ASCIIString {
210210 /// Internal use only.
211- /// Used when string and data are already known to be valid ASCII.
212- init ( guaranteedASCII string: String , rawData: Data ) {
211+ /// Used when the input string and data are guaranteed to be valid ASCII.
212+ init ( unsafe string: String , rawData: Data ) {
213213 stringValue = string
214214 self . rawData = rawData
215215 }
You can’t perform that action at this time.
0 commit comments