matrix-sdk: Fix the login example.

master
Damir Jelić 2020-10-06 12:41:21 +02:00
parent e16b7f9c44
commit 83b48fb53c
1 changed files with 3 additions and 1 deletions

View File

@ -503,7 +503,9 @@ impl Client {
/// # block_on(async {
/// let client = Client::new(homeserver).unwrap();
/// let user = "example";
/// let response = client.login(user, "wordpass", None, Some("My bot")).await;
/// let response = client
/// .login(user, "wordpass", None, Some("My bot")).await
/// .unwrap();
///
/// println!("Logged in as {}, got device_id {} and access_token {}",
/// user, response.device_id, response.access_token);