From 243c035b03d6d44e4d5f8b2369923d9c5fb3da98 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 7 Jul 2023 21:56:59 +0000 Subject: [PATCH] chore: spellcheck --- src/chat.rs | 2 +- src/mimeparser.rs | 2 +- src/tools.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index db8a955d7..950eb9e90 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -2202,7 +2202,7 @@ pub async fn send_msg_sync(context: &Context, chat_id: ChatId, msg: &mut Message } async fn send_msg_inner(context: &Context, chat_id: ChatId, msg: &mut Message) -> Result { - // protect all system messages againts RTLO attacks + // protect all system messages against RTLO attacks if msg.is_system_message() { msg.text = strip_rtlo_characters(&msg.text); } diff --git a/src/mimeparser.rs b/src/mimeparser.rs index e6e02335a..a9a039685 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -1892,7 +1892,7 @@ fn get_mime_type(mail: &mailparse::ParsedMail<'_>) -> Result<(Mime, Viewtype)> { } else { // Enacapsulated messages, see // Also used as part "message/disposition-notification" of "multipart/report", which, however, will - // be handled separatedly. + // be handled separately. // I've not seen any messages using this, so we do not attach these parts (maybe they're used to attach replies, // which are unwanted at all). // For now, we skip these parts at all; if desired, we could return DcMimeType::File/DC_MSG_File diff --git a/src/tools.rs b/src/tools.rs index 8c397255f..b0ba5d6f7 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -702,7 +702,7 @@ pub(crate) fn buf_decompress(buf: &[u8]) -> Result> { } const RTLO_CHARACTERS: [char; 5] = ['\u{202A}', '\u{202B}', '\u{202C}', '\u{202D}', '\u{202E}']; -/// This method strips all occurances of the RTLO Unicode character. +/// This method strips all occurrences of the RTLO Unicode character. /// [Why is this needed](https://github.com/deltachat/deltachat-core-rust/issues/3479)? pub(crate) fn strip_rtlo_characters(input_str: &str) -> String { input_str.replace(|char| RTLO_CHARACTERS.contains(&char), "")