We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992cb54 commit b8f89eaCopy full SHA for b8f89ea
README.md
@@ -117,7 +117,7 @@ API<Token>.object(.post, encoding: .url) { token in
117
118
`listResult()` function
119
```swift
120
-API<Post>.list { result in
+API<Post>.listResult { result in
121
switch result {
122
case .success(let posts):
123
// do whatever you want with "posts" array ...
@@ -130,7 +130,7 @@ API<Post>.list { result in
130
131
`objectResult()` function
132
133
-API<Post>.object(get("1")) { result in
+API<Post>.objectResult(get("1")) { result in
134
135
case .success(let post):
136
self.label = post.title
0 commit comments