chore: Fix typos

This commit is contained in:
Jade Ellis 2025-11-08 20:54:49 +00:00
parent d6e314744b
commit ce73d29855
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
3 changed files with 3 additions and 3 deletions

View file

@ -241,7 +241,7 @@ lock_b.with_lock(|data_b| {
### Code Comments
- Reference related documentation or parts of the specification
- When a task has multiple ways of being acheved, explain your reasoning for your decision
- When a task has multiple ways of being achieved, explain your reasoning for your decision
- Update comments when code changes
```rs

View file

@ -44,7 +44,7 @@ pub(crate) async fn get_hierarchy_route(
.as_ref()
.and_then(|s| PaginationToken::from_str(s).ok());
// Should prevent unexpeded behaviour in (bad) clients
// Should prevent unexpected behaviour in (bad) clients
if let Some(ref token) = key {
if token.suggested_only != body.suggested_only || token.max_depth != max_depth {
return Err!(Request(InvalidParam(

View file

@ -345,7 +345,7 @@ impl Service {
}
/// Sets a new displayname or removes it if displayname is None. You still
/// need to nofify all rooms of this change.
/// need to notify all rooms of this change.
pub fn set_displayname(&self, user_id: &UserId, displayname: Option<String>) {
if let Some(displayname) = displayname {
self.db.userid_displayname.insert(user_id, displayname);