Skip to content

Commit

Permalink
fix: fix some typos and grammar errors (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colk-tech authored Jan 31, 2024
1 parent e326517 commit 72b18c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bin/main/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ async fn image(ctx: &Context, ci: &CommandInteraction) -> Result<()> {
let ret = match result {
Ok(result) => result?,
Err(e) => {
tracing::error!(?e, "Timeouted to generate image");
return Err("Timeouted to generate image".into());
tracing::error!(?e, "Timed out to generate image");
return Err("Timed out to generate image".into());
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/bin/main/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct IchiyoAiEnv {
pub fn envs() -> &'static IchiyoAiEnv {
static CACHE: std::sync::OnceLock<IchiyoAiEnv> = std::sync::OnceLock::new();

CACHE.get_or_init(|| envy::from_env().expect("Failed to load enviroment variables"))
CACHE.get_or_init(|| envy::from_env().expect("Failed to load environment variables"))
}

#[tokio::main]
Expand Down

0 comments on commit 72b18c5

Please sign in to comment.