Fix error in example
This commit is contained in:
parent
7f503eb71c
commit
bca7f41ca9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
/// }
|
||||
/// # })
|
||||
|
|
Loading…
Reference in a new issue