Skip to content

Commit 345cfee

Browse files
authored
Update README.md
1 parent 84358a4 commit 345cfee

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
@@ -60,7 +60,7 @@ Encode and decode [`Codable`](https://developer.apple.com/documentation/swift/co
6060

6161
```swift
6262
try UserDefaults.standard.encode(
63-
User(id: "99", name: "Herbert"),
63+
User(id: "1", name: "Herbert"),
6464
forKey: "owner"
6565
)
6666

@@ -81,7 +81,7 @@ Values are persisted in a friendly representation of plist native types:
8181
let defaults = UserDefaults.standard.dictionaryRepresentation()
8282

8383
[
84-
"owner": ["id": 99, "name": "Herbert"],
84+
"owner": ["id": 1, "name": "Herbert"],
8585
"url": URL(string: "fish.com"),
8686
"duration": [0, 1000000000]
8787
]

0 commit comments

Comments
 (0)