From da524347fc31160c246a3a0bd699371fed657cb0 Mon Sep 17 00:00:00 2001 From: forcedebug <167591285+forcedebug@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:56:48 +0800 Subject: [PATCH] Fix some typos in comments (#2349) Signed-off-by: forcedebug Co-authored-by: Frederik Bolding --- packages/create-snap/src/cmds/init/initUtils.ts | 2 +- packages/snaps-controllers/src/snaps/SnapController.ts | 2 +- packages/snaps-controllers/src/snaps/location/npm.test.ts | 2 +- packages/test-snaps/src/components/Logo/fox-animate.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-snap/src/cmds/init/initUtils.ts b/packages/create-snap/src/cmds/init/initUtils.ts index 830e8fdaab..ad744389e2 100644 --- a/packages/create-snap/src/cmds/init/initUtils.ts +++ b/packages/create-snap/src/cmds/init/initUtils.ts @@ -10,7 +10,7 @@ export const SNAP_LOCATION = 'packages/snap/'; /** * Checks if the destination folder exists and if it's empty. Otherwise create it. * - * @param directory - The desination folder. + * @param directory - The destination folder. */ export async function prepareWorkingDirectory( directory: string, diff --git a/packages/snaps-controllers/src/snaps/SnapController.ts b/packages/snaps-controllers/src/snaps/SnapController.ts index f7e164d942..19a4cd663c 100644 --- a/packages/snaps-controllers/src/snaps/SnapController.ts +++ b/packages/snaps-controllers/src/snaps/SnapController.ts @@ -3507,7 +3507,7 @@ export class SnapController extends BaseController< * to return false in that scenario. * * @param snapId - The snap id. - * @param newVersionRange - The new version range being requsted. + * @param newVersionRange - The new version range being requested. * @returns `true` if validation checks pass and `false` if they do not. */ #isValidUpdate(snapId: SnapId, newVersionRange: SemVerRange): boolean { diff --git a/packages/snaps-controllers/src/snaps/location/npm.test.ts b/packages/snaps-controllers/src/snaps/location/npm.test.ts index 364a6056ad..dd38d3a38b 100644 --- a/packages/snaps-controllers/src/snaps/location/npm.test.ts +++ b/packages/snaps-controllers/src/snaps/location/npm.test.ts @@ -380,7 +380,7 @@ describe('NpmLocation', () => { }); // TODO(ritave): Doing this tests requires writing tarball packing utility function - // With the the current changeset going way out of scope, I'm leaving this for future. + // With the current changeset going way out of scope, I'm leaving this for future. it.todo('sets canonical path properly'); // TODO(ritave): Requires writing tarball packing utility out of scope for a hot-fix blocking release. it.todo('paths are normalized to remove "./" prefix'); diff --git a/packages/test-snaps/src/components/Logo/fox-animate.ts b/packages/test-snaps/src/components/Logo/fox-animate.ts index a2201192f5..8f88ba6ed2 100644 --- a/packages/test-snaps/src/components/Logo/fox-animate.ts +++ b/packages/test-snaps/src/components/Logo/fox-animate.ts @@ -190,7 +190,7 @@ export class FoxAnimation { const weight = this.weights[i]; - // calculate ditance and force magnitude + // calculate distance and force magnitude const d = vec3.subtract(this._velocity, this.curPosition[i], P); const scale = Math.min(10, (weight[3] * mag) / (1 + vec3.sqrLen(d))); if (scale < 0.01 || vec3.squaredLength(this.velocity[i]) > 100) {