Skip to content

Commit f3daf40

Browse files
committed
ember_html: Fix typos
1 parent d3a4e32 commit f3daf40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/middleware/ember_html.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PATH_PREFIX_CRATES: &str = "/crates/";
2727

2828
/// The [`Shared`] allows for multiple tasks to wait on a single future, [`BoxFuture`] allows
2929
/// us to name the type in the declaration of static variables, and the [`Arc`] ensures
30-
/// the [`minijinja::Environment`] doensn't get cloned each request.
30+
/// the [`minijinja::Environment`] doesn't get cloned each request.
3131
type TemplateEnvFut = Shared<BoxFuture<'static, Arc<minijinja::Environment<'static>>>>;
3232
type TemplateCache = moka::future::Cache<Cow<'static, str>, String>;
3333

@@ -86,7 +86,7 @@ pub async fn serve_html(state: AppState, request: Request, next: Next) -> Respon
8686
let render_result = html_cache
8787
.entry_by_ref(&og_image_url)
8888
.or_try_insert_with::<_, minijinja::Error>(async {
89-
// `LazyLock::deref` blocks as long as its intializer is running in another thread.
89+
// `LazyLock::deref` blocks as long as its initializer is running in another thread.
9090
// Note that this won't take long, as the constructed Futures are not awaited
9191
// during initialization.
9292
let template_env = &*TEMPLATE_ENV;

0 commit comments

Comments
 (0)