From c77b852ab36c1187eb750cc09c5298d3ba66decc Mon Sep 17 00:00:00 2001 From: jamesbt365 Date: Mon, 15 Jul 2024 23:03:48 +0100 Subject: [PATCH] fix numerous typos of occurred --- src/slash_argument/slash_macro.rs | 6 +++--- src/structs/framework_error.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/slash_argument/slash_macro.rs b/src/slash_argument/slash_macro.rs index e4b0003a06bd..d25058b449d2 100644 --- a/src/slash_argument/slash_macro.rs +++ b/src/slash_argument/slash_macro.rs @@ -21,7 +21,7 @@ pub enum SlashArgError { /// A string parameter was found, but it could not be parsed into the target type. #[non_exhaustive] Parse { - /// Error that occured while parsing the string into the target type + /// Error that occurred while parsing the string into the target type error: Box, /// Original input string input: String, @@ -32,7 +32,7 @@ pub enum SlashArgError { /// Human readable description of the error &'static str, ), - /// HTTP error occured while retrieving the model type from Discord + /// HTTP error occurred while retrieving the model type from Discord Http(serenity::Error), #[doc(hidden)] __NonExhaustive, @@ -91,7 +91,7 @@ impl std::fmt::Display for SlashArgError { Self::Http(error) => { write!( f, - "Error occured while retrieving data from Discord: {error}", + "Error occurred while retrieving data from Discord: {error}", ) } Self::__NonExhaustive => unreachable!(), diff --git a/src/structs/framework_error.rs b/src/structs/framework_error.rs index 018d40d8a188..5f5f2cf91d5a 100644 --- a/src/structs/framework_error.rs +++ b/src/structs/framework_error.rs @@ -36,7 +36,7 @@ pub enum FrameworkError<'a, U, E> { #[derivative(Debug = "ignore")] framework: crate::FrameworkContext<'a, U, E>, }, - /// Error occured during command execution + /// Error occurred during command execution #[non_exhaustive] Command { /// Error which was thrown in the command code @@ -49,7 +49,7 @@ pub enum FrameworkError<'a, U, E> { /// General context ctx: crate::Context<'a, U, E>, }, - /// Panic occured at any phase of command execution after constructing the `crate::Context`. + /// Panic occurred at any phase of command execution after constructing the `crate::Context`. /// /// This feature is intended as a last-resort safeguard to gracefully print an error message to /// the user on a panic. Panics should only be thrown for bugs in the code, don't use this for