From 9084c1fcaacab5bc90432e8f0df9c67428cad283 Mon Sep 17 00:00:00 2001 From: kuna <122474873+baummarten@users.noreply.github.com> Date: Sat, 14 Jan 2023 20:43:43 +0100 Subject: [PATCH] Update docs for Registration::new_with_client Co-authored-by: Scott Boggs --- src/registration.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/registration.rs b/src/registration.rs index 4e520f4..cb869a4 100644 --- a/src/registration.rs +++ b/src/registration.rs @@ -58,7 +58,8 @@ impl<'a> Registration<'a> { /// ``` /// use mastodon_async::prelude::*; /// - /// let registration = Registration::new("https://botsin.space"); + /// let client = reqwest::Client::builder().user_agent("my cool app").build().unwrap(); + /// let registration = Registration::new_with_client("https://botsin.space", client); /// ``` pub fn new_with_client>(base: I, client: Client) -> Self { Registration {