From 8d6632ccfa6ba4412843fb549f9404efbaa9b61d Mon Sep 17 00:00:00 2001 From: rubyisrust Date: Thu, 15 Aug 2024 23:53:37 +0800 Subject: [PATCH] chore: fix typos in code comments (#68792) Signed-off-by: rubyisrust Co-authored-by: Lee Robinson --- crates/next-api/src/dynamic_imports.rs | 4 ++-- crates/next-core/src/next_config.rs | 2 +- .../next-custom-transforms/src/transforms/server_actions.rs | 2 +- .../sitecore/config/xmcloud-nextjs-starter.config | 2 +- packages/next/src/cli/next-info.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/next-api/src/dynamic_imports.rs b/crates/next-api/src/dynamic_imports.rs index e49283bfc4a8b..72c1d3d8bdaae 100644 --- a/crates/next-api/src/dynamic_imports.rs +++ b/crates/next-api/src/dynamic_imports.rs @@ -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); diff --git a/crates/next-core/src/next_config.rs b/crates/next-core/src/next_config.rs index ffefaefb20022..1ab87a3d46d90 100644 --- a/crates/next-core/src/next_config.rs +++ b/crates/next-core/src/next_config.rs @@ -792,7 +792,7 @@ impl NextConfig { #[turbo_tasks::function] pub async fn env(self: Vc) -> Result> { // The value expected for env is Record, 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? diff --git a/crates/next-custom-transforms/src/transforms/server_actions.rs b/crates/next-custom-transforms/src/transforms/server_actions.rs index 63a0f919bfa5c..2505247c12a30 100644 --- a/crates/next-custom-transforms/src/transforms/server_actions.rs +++ b/crates/next-custom-transforms/src/transforms/server_actions.rs @@ -761,7 +761,7 @@ impl VisitMut for ServerActions { 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 { diff --git a/examples/cms-sitecore-xmcloud/sitecore/config/xmcloud-nextjs-starter.config b/examples/cms-sitecore-xmcloud/sitecore/config/xmcloud-nextjs-starter.config index e0a7e02d4a43f..f8d2e329d9885 100644 --- a/examples/cms-sitecore-xmcloud/sitecore/config/xmcloud-nextjs-starter.config +++ b/examples/cms-sitecore-xmcloud/sitecore/config/xmcloud-nextjs-starter.config @@ -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. --> - + mw=100,mh=50 diff --git a/packages/next/src/cli/next-info.ts b/packages/next/src/cli/next-info.ts index bbcd59c5f9464..7c68c35954586 100755 --- a/packages/next/src/cli/next-info.ts +++ b/packages/next/src/cli/next-info.ts @@ -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.