mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 14:19:06 -04:00
Fix error in example
This commit is contained in:
@@ -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);
|
||||
/// }
|
||||
/// # })
|
||||
|
||||
Reference in New Issue
Block a user