Fix error in example
parent
7f503eb71c
commit
bca7f41ca9
|
@ -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);
|
||||||
/// }
|
/// }
|
||||||
/// # })
|
/// # })
|
||||||
|
|
Loading…
Reference in New Issue