From 3c9f92959812f1c7f29d5285403f731feee21e87 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sun, 30 May 2021 15:01:27 +0200 Subject: [PATCH] Fix typo: underlaying => underlying --- matrix_sdk/src/room/common.rs | 2 +- matrix_sdk/src/room/invited.rs | 6 +++--- matrix_sdk/src/room/joined.rs | 6 +++--- matrix_sdk/src/room/left.rs | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/matrix_sdk/src/room/common.rs b/matrix_sdk/src/room/common.rs index 82647506..cff99001 100644 --- a/matrix_sdk/src/room/common.rs +++ b/matrix_sdk/src/room/common.rs @@ -34,7 +34,7 @@ impl Common { /// # Arguments /// * `client` - The client used to make requests. /// - /// * `room` - The underlaying room. + /// * `room` - The underlying room. pub fn new(client: Client, room: BaseRoom) -> Self { // TODO: Make this private Self { inner: room, client } diff --git a/matrix_sdk/src/room/invited.rs b/matrix_sdk/src/room/invited.rs index fc7c1196..3ff681e4 100644 --- a/matrix_sdk/src/room/invited.rs +++ b/matrix_sdk/src/room/invited.rs @@ -5,7 +5,7 @@ use crate::{room::Common, BaseRoom, Client, Result, RoomType}; /// A room in the invited state. /// /// This struct contains all methodes specific to a `Room` with type -/// `RoomType::Invited`. Operations may fail once the underlaying `Room` changes +/// `RoomType::Invited`. Operations may fail once the underlying `Room` changes /// `RoomType`. #[derive(Debug, Clone)] pub struct Invited { @@ -13,13 +13,13 @@ pub struct Invited { } impl Invited { - /// Create a new `room::Invited` if the underlaying `Room` has type + /// Create a new `room::Invited` if the underlying `Room` has type /// `RoomType::Invited`. /// /// # Arguments /// * `client` - The client used to make requests. /// - /// * `room` - The underlaying room. + /// * `room` - The underlying room. pub fn new(client: Client, room: BaseRoom) -> Option { // TODO: Make this private if room.room_type() == RoomType::Invited { diff --git a/matrix_sdk/src/room/joined.rs b/matrix_sdk/src/room/joined.rs index db10e91c..2741bf69 100644 --- a/matrix_sdk/src/room/joined.rs +++ b/matrix_sdk/src/room/joined.rs @@ -48,7 +48,7 @@ const TYPING_NOTICE_RESEND_TIMEOUT: Duration = Duration::from_secs(3); /// A room in the joined state. /// /// The `JoinedRoom` contains all methodes specific to a `Room` with type -/// `RoomType::Joined`. Operations may fail once the underlaying `Room` changes +/// `RoomType::Joined`. Operations may fail once the underlying `Room` changes /// `RoomType`. #[derive(Debug, Clone)] pub struct Joined { @@ -64,13 +64,13 @@ impl Deref for Joined { } impl Joined { - /// Create a new `room::Joined` if the underlaying `BaseRoom` has type + /// Create a new `room::Joined` if the underlying `BaseRoom` has type /// `RoomType::Joined`. /// /// # Arguments /// * `client` - The client used to make requests. /// - /// * `room` - The underlaying room. + /// * `room` - The underlying room. pub fn new(client: Client, room: BaseRoom) -> Option { // TODO: Make this private if room.room_type() == RoomType::Joined { diff --git a/matrix_sdk/src/room/left.rs b/matrix_sdk/src/room/left.rs index 3169f356..0714f6c0 100644 --- a/matrix_sdk/src/room/left.rs +++ b/matrix_sdk/src/room/left.rs @@ -7,7 +7,7 @@ use crate::{room::Common, BaseRoom, Client, Result, RoomType}; /// A room in the left state. /// /// This struct contains all methodes specific to a `Room` with type -/// `RoomType::Left`. Operations may fail once the underlaying `Room` changes +/// `RoomType::Left`. Operations may fail once the underlying `Room` changes /// `RoomType`. #[derive(Debug, Clone)] pub struct Left { @@ -15,13 +15,13 @@ pub struct Left { } impl Left { - /// Create a new `room::Left` if the underlaying `Room` has type + /// Create a new `room::Left` if the underlying `Room` has type /// `RoomType::Left`. /// /// # Arguments /// * `client` - The client used to make requests. /// - /// * `room` - The underlaying room. + /// * `room` - The underlying room. pub fn new(client: Client, room: BaseRoom) -> Option { // TODO: Make this private if room.room_type() == RoomType::Left {