fix some typos (#4519)

Signed-off-by: battmdpkq <cmaker@163.com>
This commit is contained in:
battmdpkq 2024-03-08 17:38:20 +08:00 committed by GitHub
parent fed6b61eaf
commit f228f9d7a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

@ -87,7 +87,7 @@ pub async fn build_post_response(
Ok(Json(PostResponse { post_view })) Ok(Json(PostResponse { post_view }))
} }
// TODO: this function is a mess and should be split up to handle email seperately // TODO: this function is a mess and should be split up to handle email separately
#[tracing::instrument(skip_all)] #[tracing::instrument(skip_all)]
pub async fn send_local_notifs( pub async fn send_local_notifs(
mentions: Vec<MentionData>, mentions: Vec<MentionData>,

View file

@ -72,7 +72,7 @@ pub(crate) async fn get_apub_community_followers(
} }
/// Returns the community outbox, which is populated by a maximum of 20 posts (but no other /// Returns the community outbox, which is populated by a maximum of 20 posts (but no other
/// activites like votes or comments). /// activities like votes or comments).
pub(crate) async fn get_apub_community_outbox( pub(crate) async fn get_apub_community_outbox(
info: web::Path<CommunityQuery>, info: web::Path<CommunityQuery>,
context: Data<LemmyContext>, context: Data<LemmyContext>,

View file

@ -44,6 +44,6 @@ pub mod tagline;
/// value is not sent by Lemmy. Necessary for crates which rely on Rust API such as lemmy-stats-crawler. /// value is not sent by Lemmy. Necessary for crates which rely on Rust API such as lemmy-stats-crawler.
fn placeholder_apub_url() -> DbUrl { fn placeholder_apub_url() -> DbUrl {
DbUrl(Box::new( DbUrl(Box::new(
Url::parse("http://example.com").expect("parse placeholer url"), Url::parse("http://example.com").expect("parse placeholder url"),
)) ))
} }

View file

@ -212,7 +212,7 @@ impl<C: Default> RateLimitedGroup<C> {
now: InstantSecs, now: InstantSecs,
config: BucketConfig, config: BucketConfig,
) -> bool { ) -> bool {
#[allow(clippy::indexing_slicing)] // `EnumMap` has no `get` funciton #[allow(clippy::indexing_slicing)] // `EnumMap` has no `get` function
let bucket = &mut self.total[action_type]; let bucket = &mut self.total[action_type];
let new_bucket = bucket.update(now, config); let new_bucket = bucket.update(now, config);

View file

@ -204,7 +204,7 @@ pub fn site_description_length_check(description: &str) -> LemmyResult<()> {
) )
} }
/// Check minumum and maximum length of input string. If the string is too short or too long, the /// Check minimum and maximum length of input string. If the string is too short or too long, the
/// corresponding error is returned. /// corresponding error is returned.
/// ///
/// HTML frontends specify maximum input length using `maxlength` attribute. /// HTML frontends specify maximum input length using `maxlength` attribute.