mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Fix typos
This commit is contained in:
@@ -241,7 +241,7 @@ lock_b.with_lock(|data_b| {
|
|||||||
### Code Comments
|
### Code Comments
|
||||||
|
|
||||||
- Reference related documentation or parts of the specification
|
- 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
|
- Update comments when code changes
|
||||||
|
|
||||||
```rs
|
```rs
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ pub(crate) async fn get_hierarchy_route(
|
|||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|s| PaginationToken::from_str(s).ok());
|
.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 let Some(ref token) = key {
|
||||||
if token.suggested_only != body.suggested_only || token.max_depth != max_depth {
|
if token.suggested_only != body.suggested_only || token.max_depth != max_depth {
|
||||||
return Err!(Request(InvalidParam(
|
return Err!(Request(InvalidParam(
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ impl Service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Sets a new displayname or removes it if displayname is None. You still
|
/// 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>) {
|
pub fn set_displayname(&self, user_id: &UserId, displayname: Option<String>) {
|
||||||
if let Some(displayname) = displayname {
|
if let Some(displayname) = displayname {
|
||||||
self.db.userid_displayname.insert(user_id, displayname);
|
self.db.userid_displayname.insert(user_id, displayname);
|
||||||
|
|||||||
Reference in New Issue
Block a user