Skip to content

Commit b8f89ea

Browse files
authored
Update README.md
1 parent 992cb54 commit b8f89ea

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
@@ -117,7 +117,7 @@ API<Token>.object(.post, encoding: .url) { token in
117117

118118
`listResult()` function
119119
```swift
120-
API<Post>.list { result in
120+
API<Post>.listResult { result in
121121
switch result {
122122
case .success(let posts):
123123
// do whatever you want with "posts" array ...
@@ -130,7 +130,7 @@ API<Post>.list { result in
130130

131131
`objectResult()` function
132132
```swift
133-
API<Post>.object(get("1")) { result in
133+
API<Post>.objectResult(get("1")) { result in
134134
switch result {
135135
case .success(let post):
136136
self.label = post.title

0 commit comments

Comments
 (0)