Unverified Commit 8d6632cc authored by rubyisrust's avatar rubyisrust Committed by GitHub

chore: fix typos in code comments (#68792)

Signed-off-by: 's avatarrubyisrust <rustrover@icloud.com>
Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent b9441437
......@@ -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);
......
......@@ -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?
......
......@@ -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 {
......
......@@ -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>
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment