Skip to content

Commit 5ad6cc3

Browse files
authored
Update README.md
1 parent f2510e2 commit 5ad6cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ let values = try KeyValueDecoder().decode([Int8].self, from: [10, 20.0, -30.0, I
113113
_ = try KeyValueDecoder().decode(Int8.self, from: 1000])
114114
```
115115

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

118118
```swift
119119
let decoder = KeyValueDecoder()

0 commit comments

Comments
 (0)