@@ -258,7 +258,7 @@ extension JSONDecoderImpl: Decoder {
258
258
}
259
259
260
260
@usableFromInline func singleValueContainer( ) throws -> SingleValueDecodingContainer {
261
- SingleValueContainter (
261
+ SingleValueContainer (
262
262
impl: self ,
263
263
codingPath: self . codingPath,
264
264
json: self . json
@@ -293,18 +293,18 @@ extension JSONDecoderImpl: Decoder {
293
293
return try Date ( from: self )
294
294
295
295
case . secondsSince1970:
296
- let container = SingleValueContainter ( impl: self , codingPath: self . codingPath, json: self . json)
296
+ let container = SingleValueContainer ( impl: self , codingPath: self . codingPath, json: self . json)
297
297
let double = try container. decode ( Double . self)
298
298
return Date ( timeIntervalSince1970: double)
299
299
300
300
case . millisecondsSince1970:
301
- let container = SingleValueContainter ( impl: self , codingPath: self . codingPath, json: self . json)
301
+ let container = SingleValueContainer ( impl: self , codingPath: self . codingPath, json: self . json)
302
302
let double = try container. decode ( Double . self)
303
303
return Date ( timeIntervalSince1970: double / 1000.0 )
304
304
305
305
case . iso8601:
306
306
if #available( macOS 10 . 12 , iOS 10 . 0 , watchOS 3 . 0 , tvOS 10 . 0 , * ) {
307
- let container = SingleValueContainter ( impl: self , codingPath: self . codingPath, json: self . json)
307
+ let container = SingleValueContainer ( impl: self , codingPath: self . codingPath, json: self . json)
308
308
let string = try container. decode ( String . self)
309
309
guard let date = _iso8601Formatter. date ( from: string) else {
310
310
throw DecodingError . dataCorrupted ( DecodingError . Context ( codingPath: self . codingPath, debugDescription: " Expected date string to be ISO8601-formatted. " ) )
@@ -316,7 +316,7 @@ extension JSONDecoderImpl: Decoder {
316
316
}
317
317
318
318
case . formatted( let formatter) :
319
- let container = SingleValueContainter ( impl: self , codingPath: self . codingPath, json: self . json)
319
+ let container = SingleValueContainer ( impl: self , codingPath: self . codingPath, json: self . json)
320
320
let string = try container. decode ( String . self)
321
321
guard let date = formatter. date ( from: string) else {
322
322
throw DecodingError . dataCorrupted ( DecodingError . Context ( codingPath: self . codingPath, debugDescription: " Date string does not match format expected by formatter. " ) )
@@ -334,7 +334,7 @@ extension JSONDecoderImpl: Decoder {
334
334
return try Data ( from: self )
335
335
336
336
case . base64:
337
- let container = SingleValueContainter ( impl: self , codingPath: self . codingPath, json: self . json)
337
+ let container = SingleValueContainer ( impl: self , codingPath: self . codingPath, json: self . json)
338
338
let string = try container. decode ( String . self)
339
339
340
340
guard let data = Data ( base64Encoded: string) else {
@@ -349,7 +349,7 @@ extension JSONDecoderImpl: Decoder {
349
349
}
350
350
351
351
private func unwrapURL( ) throws -> URL {
352
- let container = SingleValueContainter ( impl: self , codingPath: self . codingPath, json: self . json)
352
+ let container = SingleValueContainer ( impl: self , codingPath: self . codingPath, json: self . json)
353
353
let string = try container. decode ( String . self)
354
354
355
355
guard let url = URL ( string: string) else {
@@ -520,7 +520,7 @@ extension Decodable {
520
520
}
521
521
522
522
extension JSONDecoderImpl {
523
- struct SingleValueContainter : SingleValueDecodingContainer {
523
+ struct SingleValueContainer : SingleValueDecodingContainer {
524
524
let impl : JSONDecoderImpl
525
525
let value : JSONValue
526
526
let codingPath : [ CodingKey ]
0 commit comments