Fix error in example

master
Amanda Graven 2020-12-07 13:14:23 +01:00
parent 7f503eb71c
commit bca7f41ca9
No known key found for this signature in database
GPG Key ID: 45C461CDC9286390
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ impl Client {
/// let client = Client::new(homeserver).unwrap(); /// let client = Client::new(homeserver).unwrap();
/// client.login(user, "password", None, None).await.unwrap(); /// client.login(user, "password", None, None).await.unwrap();
/// ///
/// if let Some(name) = client.display_name().await { /// if let Some(name) = client.display_name().await.unwrap() {
/// println!("Logged in as user '{}' with display name '{}'", user, name); /// println!("Logged in as user '{}' with display name '{}'", user, name);
/// } /// }
/// # }) /// # })