Skip to content

Commit

Permalink
chore: fix typos in code comments (vercel#68792)
Browse files Browse the repository at this point in the history
Signed-off-by: rubyisrust <rustrover@icloud.com>
Co-authored-by: Lee Robinson <me@leerob.io>
  • Loading branch information
rubyisrust and leerob authored Aug 15, 2024
1 parent b944143 commit 8d6632c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/next-api/src/dynamic_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ where
// [Note]: this seems to create duplicated chunks for the same module to the original import() call
// and the explicit chunk we ask in here. So there'll be at least 2
// chunks for the same module, relying on
// naive hash to have additonal
// chunks in case if there are same modules being imported in differnt
// naive hash to have additional
// chunks in case if there are same modules being imported in different
// origins.
let chunk_group = build_chunk(module).await?;
chunks_hash.insert(imported_raw_str.clone(), chunk_group);
Expand Down
2 changes: 1 addition & 1 deletion crates/next-core/src/next_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ impl NextConfig {
#[turbo_tasks::function]
pub async fn env(self: Vc<Self>) -> Result<Vc<EnvMap>> {
// The value expected for env is Record<String, String>, but config itself
// allows arbitary object (https://github.com/vercel/next.js/blob/25ba8a74b7544dfb6b30d1b67c47b9cb5360cb4e/packages/next/src/server/config-schema.ts#L203)
// allows arbitrary object (https://github.com/vercel/next.js/blob/25ba8a74b7544dfb6b30d1b67c47b9cb5360cb4e/packages/next/src/server/config-schema.ts#L203)
// then stringifies it. We do the interop here as well.
let env = self
.await?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ impl<C: Comments> VisitMut for ServerActions<C> {
if self.in_action_file {
let mut disallowed_export_span = DUMMY_SP;

// Currrently only function exports are allowed.
// Currently only function exports are allowed.
match &mut stmt {
ModuleItem::ModuleDecl(ModuleDecl::ExportDecl(ExportDecl { decl, span })) => {
match decl {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
Note: the parameter sets defined here are comma-delimited (,) instead of &-delimited like the query string. Multiple sets are endline-delimited.
-->
<allowedMediaParams>
<!-- XML element name is arbitary, useful for organizing and patching -->
<!-- XML element name is arbitrary, useful for organizing and patching -->
<styleguide-image-sample>
mw=100,mh=50
</styleguide-image-sample>
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/cli/next-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ async function printVerboseInfo() {
const bindings = await loadBindings(
nextConfig.experimental?.useWasmBinary
)
// Run arbitary function to verify the bindings are loaded correctly.
// Run arbitrary function to verify the bindings are loaded correctly.
const target = bindings.getTargetTriple()

// We think next-swc is installed correctly if getTargetTriple returns.
Expand Down

0 comments on commit 8d6632c

Please sign in to comment.