diff --git a/docs/versioned_docs/version-v111/usage/example.md b/docs/versioned_docs/version-v111/usage/example.md index 6182d8ff3..dfd6f7554 100644 --- a/docs/versioned_docs/version-v111/usage/example.md +++ b/docs/versioned_docs/version-v111/usage/example.md @@ -73,7 +73,7 @@ public class TwitterClientOptions(string ApiKey, string ApiSecret); public TwitterClient(IOptions options) { var opt = new RestClientOptions("https://api.twitter.com/2"); - _client = new RestClient(options); + _client = new RestClient(opt); } ``` @@ -149,4 +149,4 @@ Sample code provided on this page is a production code. For example, the authent ## Final words -This page demonstrates how an API client can be implemented as a typed, configurable client with its own interface. Usage of the client in applications is not covered here as different application types and target frameworks have their own idiomatic ways to use HTTP clients. \ No newline at end of file +This page demonstrates how an API client can be implemented as a typed, configurable client with its own interface. Usage of the client in applications is not covered here as different application types and target frameworks have their own idiomatic ways to use HTTP clients.