Skip to content

Commit

Permalink
Merge pull request #961 from polywrap/fetsorn/typo-fixes
Browse files Browse the repository at this point in the history
fix typos in comments
  • Loading branch information
dOrgJelli authored Jun 27, 2022
2 parents 7b9d827 + 5528393 commit bebc291
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
],
format: ["camelCase"], leadingUnderscore: "allow"
},
//wrap host methods doesn"t satisfy neither camel or snake
//wrap host methods doesn't satisfy neither camel or snake
{selector: ["objectLiteralMethod", "typeMethod"], filter: {regex: "^_wrap_.*", match: true}, format: null},
//variable must be in camel or upper case
{selector: "variable", format: ["camelCase", "UPPER_CASE"], leadingUnderscore: "allow"},
Expand Down
6 changes: 3 additions & 3 deletions packages/js/core/src/algorithms/combine-paths.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export const combinePaths = (a: string, b: string): string => {
// Normalize all path seperators
// Normalize all path separators
a = a.replace(/\\/g, "/");
b = b.replace(/\\/g, "/");

// Append a seperator if one doesn't exist
// Append a separator if one doesn't exist
if (a[a.length - 1] !== "/") {
a += "/";
}

// Remove any leading seperators from
// Remove any leading separators from
while (b[0] === "/" || b[0] === ".") {
b = b.substring(1);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/js/os/src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export function normalizeLineEndings(
return data.replace(/\r\n|\r|\n/g, eol);
}

export function normalizePath(data: string, seperator = "/"): string {
return data.replace(/\\|\//g, seperator);
export function normalizePath(data: string, separator = "/"): string {
return data.replace(/\\|\//g, separator);
}
2 changes: 1 addition & 1 deletion packages/schema/parse/src/__tests__/validate-types.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ describe("Polywrap Schema Type Validation", () => {
//Should allow circular references on nullable fields
expect(exec(circularTypes6)).not.toThrow()

//Should allow recursive referece on nullable fields
//Should allow recursive reference on nullable fields
expect(exec(circularTypes7)).not.toThrow()

//Should allow array of recursive references
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm/as/assembly/msgpack/ReadDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class ReadDecoder extends Read {
);
}

// Consule the leadByte
// Consume the leadByte
this._view.getUint8();

// Get the extension type
Expand Down

0 comments on commit bebc291

Please sign in to comment.