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

Fix some typos in comments #2349

Merged
merged 2 commits into from
Apr 23, 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
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
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
Loading