Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos in comments #68792

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading