Skip to content

Commit

Permalink
fix typo (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebundy committed Jun 13, 2023
1 parent cc44c36 commit 1231a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/intro.md
Expand Up @@ -59,7 +59,7 @@ var request = new RestRequest("statuses/home_timeline.json");
var timeline = await client.GetAsync<HomeTimeline>(request, cancellationToken);
```

Both snippets about use the `GetAsync` extension, which is a wrapper about `ExecuteGetAsync`, which, in turn, is a wrapper around `ExecuteAsync`.
Both snippets above use the `GetAsync` extension, which is a wrapper about `ExecuteGetAsync`, which, in turn, is a wrapper around `ExecuteAsync`.
All `ExecuteAsync` overloads and return the `RestResponse` or `RestResponse<T>`.

The most important difference is that async methods that are named after HTTP methods return the `Task<T>` instead of `Task<RestResponse<T>>`. Because it means that you won't get an error response if the request fails, those methods
Expand Down

0 comments on commit 1231a68

Please sign in to comment.