Skip to content

Commit cdbb67a

Browse files
authored
Update README.md
1 parent 700b4f2 commit cdbb67a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ let user = try KeyValuDecoder().decode(User.self, from: ["id": 1, "name": "Herbe
4949

5050
```swift
5151
// throws DecodingError.typeMismatch 'Expected String at SELF[1], found Int'
52-
let meals = try KeyValuDecoder().decode([String].self, from: ["fish", 1])
52+
let meals = try KeyValueDecoder().decode([String].self, from: ["fish", 1])
5353

5454
// throws DecodingError.valueNotFound 'Expected String at SELF[1].name, found nil'
55-
let user = try KeyValuDecoder().decode(User.self, from: [["id": 1, "name": "Herbert"], ["id:" 2])
55+
let user = try KeyValueDecoder().decode(User.self, from: [["id": 1, "name": "Herbert"], ["id:" 2])
5656

5757
// throws DecodingError.typeMismatch 'Int at SELF[2], cannot be exactly represented by UInt8'
5858
let ascii = try KeyValueDecoder().decode([UInt8].self, from: [10, 100, 1000])

0 commit comments

Comments
 (0)