Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty authored Jun 26, 2024
1 parent f2510e2 commit 5ad6cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ let values = try KeyValueDecoder().decode([Int8].self, from: [10, 20.0, -30.0, I
_ = try KeyValueDecoder().decode(Int8.self, from: 1000])
```

Integers can also be decoded using any [FloatingPointRoundingRule](https://developer.apple.com/documentation/swift/floatingpointroundingrule) by setting the `.rounded(rule:)` strategy:
Values with a fractional part can also be decoded to integers by rounding with any [FloatingPointRoundingRule](https://developer.apple.com/documentation/swift/floatingpointroundingrule):

```swift
let decoder = KeyValueDecoder()
Expand Down

0 comments on commit 5ad6cc3

Please sign in to comment.