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 {