From 5ba19abe1352642e10d39a4d0eda8107436003e0 Mon Sep 17 00:00:00 2001
From: Lino Le Van <11367844+lino-levan@users.noreply.github.com>
Date: Wed, 26 Jul 2023 06:09:42 -0700
Subject: [PATCH] fix: typos (#1526)
---
docs/latest/concepts/updating.md | 2 +-
init.ts | 2 +-
src/dev/update_check.ts | 2 +-
src/server/context.ts | 4 ++--
tests/fixture/islands/StringEventIsland.tsx | 2 +-
tests/fixture/routes/event_handler_string.tsx | 2 +-
tests/fixture_twind_hydrate/islands/InsertCssrules.tsx | 2 +-
tests/main_test.ts | 4 ++--
tests/twind_test.ts | 2 +-
www/components/FeatureIcons.tsx | 2 +-
www/routes/index.tsx | 2 +-
11 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/docs/latest/concepts/updating.md b/docs/latest/concepts/updating.md
index 550fdb89..7098c996 100644
--- a/docs/latest/concepts/updating.md
+++ b/docs/latest/concepts/updating.md
@@ -3,7 +3,7 @@ description: |
New versions of Fresh are regularly released. This page explains how to update your project.
---
-Fresh constists of multiple pieces which are independently versioned and
+Fresh consists of multiple pieces which are independently versioned and
released.
- Fresh (https://deno.land/x/fresh)
diff --git a/init.ts b/init.ts
index 8259030f..87b8f4d0 100644
--- a/init.ts
+++ b/init.ts
@@ -491,7 +491,7 @@ try {
new Uint8Array(faviconArrayBuffer),
);
} catch {
- // Skip this and be silent if there is a nework issue.
+ // Skip this and be silent if there is a network issue.
}
let MAIN_TS = `///
diff --git a/src/dev/update_check.ts b/src/dev/update_check.ts
index 71633241..e5642d71 100644
--- a/src/dev/update_check.ts
+++ b/src/dev/update_check.ts
@@ -97,7 +97,7 @@ export async function updateCheck(
// Update current version
checkFile.current_version = version;
- // Only check in the specificed interval
+ // Only check in the specified interval
if (Date.now() >= new Date(checkFile.last_checked).getTime() + interval) {
try {
checkFile.latest_version = await getLatestVersion();
diff --git a/src/server/context.ts b/src/server/context.ts
index 40c8c9f7..14deda06 100644
--- a/src/server/context.ts
+++ b/src/server/context.ts
@@ -1063,10 +1063,10 @@ export function pathToPattern(path: string): string {
}
// Disallow neighbouring params like `/[id][bar].tsx` because
- // it's ambigious where the `id` param ends and `bar` begins.
+ // it's ambiguous where the `id` param ends and `bar` begins.
if (part.includes("][")) {
throw new SyntaxError(
- `Invalid route pattern: "${path}". A parameter cannot be followed by another parameter without any charactes in between.`,
+ `Invalid route pattern: "${path}". A parameter cannot be followed by another parameter without any characters in between.`,
);
}
diff --git a/tests/fixture/islands/StringEventIsland.tsx b/tests/fixture/islands/StringEventIsland.tsx
index 622399ee..7d07d1d1 100644
--- a/tests/fixture/islands/StringEventIsland.tsx
+++ b/tests/fixture/islands/StringEventIsland.tsx
@@ -1,6 +1,6 @@
export default function StringEventIsland() {
return (
-