Fix error in example

This commit is contained in:
Amanda Graven
2020-12-07 13:14:23 +01:00
parent 7f503eb71c
commit bca7f41ca9

View File

@@ -443,7 +443,7 @@ impl Client {
/// let client = Client::new(homeserver).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);
/// }
/// # })