Update docs for Registration::new_with_client

Co-authored-by: Scott Boggs <dscottboggs@gmail.com>
This commit is contained in:
kuna 2023-01-14 20:43:43 +01:00 committed by Scott Boggs
parent d94bcd45d2
commit 9084c1fcaa
1 changed files with 2 additions and 1 deletions

View File

@ -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<I: Into<String>>(base: I, client: Client) -> Self {
Registration {