Skip to content

Commit

Permalink
fix numerous typos of "occurred" (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbt365 authored Jul 21, 2024
1 parent 9b2633d commit 5750259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/slash_argument/slash_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn std::error::Error + Send + Sync>,
/// Original input string
input: String,
Expand All @@ -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,
Expand Down Expand Up @@ -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!(),
Expand Down
4 changes: 2 additions & 2 deletions src/structs/framework_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5750259

Please sign in to comment.