From ce73d29855692af375d6a2365149c97710c9f705 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Sat, 8 Nov 2025 20:54:49 +0000 Subject: [PATCH] chore: Fix typos --- docs/development/code_style.md | 2 +- src/api/client/space.rs | 2 +- src/service/users/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/development/code_style.md b/docs/development/code_style.md index 7fa9d6bb..c794627c 100644 --- a/docs/development/code_style.md +++ b/docs/development/code_style.md @@ -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 diff --git a/src/api/client/space.rs b/src/api/client/space.rs index 23b1e80f..20dc2ec7 100644 --- a/src/api/client/space.rs +++ b/src/api/client/space.rs @@ -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( diff --git a/src/service/users/mod.rs b/src/service/users/mod.rs index ac999858..b74b3885 100644 --- a/src/service/users/mod.rs +++ b/src/service/users/mod.rs @@ -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) { if let Some(displayname) = displayname { self.db.userid_displayname.insert(user_id, displayname);