matrix-sdk: Fix the login example.
This commit is contained in:
parent
e16b7f9c44
commit
83b48fb53c
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue