Skip to content

fix: grammatical errors in code comments #1395

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
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 src/utils/calldata/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ const validateNonZero = (parameter: any, input: AbiEntry) => {
* };
*
* validateFields(functionAbi, [1n], abiStructs, abiEnums); // Returns void since validation passes
* validateFields(functionAbi, [{}], abiStructs, abiEnums); // Throw an error because paramters are not valid
* validateFields(functionAbi, [{}], abiStructs, abiEnums); // Throw an error because parameters are not valid
*/
export default function validateFields(
abiMethod: FunctionAbi,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/shortString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const isLongText = (val: any): boolean => isText(val) && !isShortString(v
* @example
* ```typescript
* const result = shortString.splitLongString("Hello, world! we just testing splitLongString function.");
* // result = [ 'Hello, world! we just testing s', 'plitLongString function.' ]
* // result = [ 'Hello, world! we just testing s', 'splitLongString function.' ]
* ```
*/
export function splitLongString(longStr: string): string[] {
Expand Down
2 changes: 1 addition & 1 deletion www/docs/guides/interact.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ txR.match({
console.log('Reverted =', txR);
},
error: (err: Error) => {
console.log('An error occured =', err);
console.log('An error occurred =', err);
},
});
```