Skip to content

Commit

Permalink
Fix some typos in comments (#2349)
Browse files Browse the repository at this point in the history
Signed-off-by: forcedebug <forcedebug@outlook.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
  • Loading branch information
forcedebug and FrederikBolding authored Apr 23, 2024
1 parent 6179938 commit da52434
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/create-snap/src/cmds/init/initUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/src/snaps/SnapController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/src/snaps/location/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion packages/test-snaps/src/components/Logo/fox-animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit da52434

Please sign in to comment.