From 5ad6cc3b7d406c1a520ed7e82bd55fd31d39aace Mon Sep 17 00:00:00 2001 From: Simon Whitty Date: Thu, 27 Jun 2024 08:10:12 +1000 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f395c4a..eb8c954 100644 --- a/README.md +++ b/README.md @@ -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()