base: Fix a couple of typos

master
Damir Jelić 2021-02-10 21:32:33 +01:00
parent b7fda1deb7
commit e857172170
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ impl RoomMember {
&self.event.state_key
}
/// Get the display name of the member if ther is one.
/// Get the display name of the member if there is one.
pub fn display_name(&self) -> Option<&str> {
if let Some(p) = self.profile.as_ref() {
p.displayname.as_deref()
@ -64,7 +64,7 @@ impl RoomMember {
}
}
/// Get the avatar url of the member, if ther is one.
/// Get the avatar url of the member, if there is one.
pub fn avatar_url(&self) -> Option<&str> {
match self.profile.as_ref() {
Some(p) => p.avatar_url.as_deref(),