chore: Improve doc comment formatting

This commit is contained in:
Jonas Platte
2022-06-08 16:54:56 +02:00
committed by Jonas Platte
parent 253affeb0c
commit 1cfd69a880
2 changed files with 5 additions and 7 deletions

View File

@@ -156,8 +156,7 @@ impl BaseClient {
/// # Arguments
///
/// * `response` - A successful login response that contains our access
/// token
/// and device id.
/// token and device id.
pub async fn receive_login_response(
&self,
response: &api::session::login::v3::Response,
@@ -174,8 +173,8 @@ impl BaseClient {
///
/// # Arguments
///
/// * `session` - An session that the user already has from a
/// previous login call.
/// * `session` - An session that the user already has from a previous login
/// call.
pub async fn restore_login(&self, session: Session) -> Result<()> {
self.store.restore_session(session.clone()).await?;

View File

@@ -1110,11 +1110,10 @@ impl Client {
/// # Arguments
///
/// * `registration` - The easiest way to create this request is using the
/// [`register::v3::Request`]
/// itself.
///
/// [`register::v3::Request`] itself.
///
/// # Examples
///
/// ```no_run
/// # use std::convert::TryFrom;
/// # use matrix_sdk::Client;