Skip to content

Commit fc302c3

Browse files
Merge pull request #714 from RidaMichofi/typos1
chore: fix typos
2 parents 1a87f65 + 5f1262a commit fc302c3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/rules/gas-consumption/gas-calldata-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This rule accepts a string option for rule severity. Must be one of "error", "wa
2727
```
2828

2929
### Notes
30-
- Only applies for external functions when receiving arguments with [memory] keyword
30+
- Only applies to external functions when receiving arguments with [memory] keyword
3131
- This rule makes a soft check to see if argument is readOnly to make the suggestion. Check it manually before changing it.
3232
- [source 1](https://coinsbench.com/comprehensive-guide-tips-and-tricks-for-gas-optimization-in-solidity-5380db734404) of the rule initiative (see Calldata vs Memory)
3333
- [source 2](https://www.rareskills.io/post/gas-optimization?postId=c9db474a-ff97-4fa3-a51d-fe13ccb8fe3b#viewer-6acr7) of the rule initiative

lib/rules/best-practices/no-unused-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class NoUnusedImportsChecker extends BaseChecker {
140140
(t.type === 'LineComment' || t.type === 'BlockComment' || t.type === 'Keyword') &&
141141
t.value &&
142142
isDocComment(t.value) && // evita // @inheritdoc ...
143-
/@inheritdoc\b/.test(t.value) // requiere @inheritdoc exacto (no "@ inheritdoc", etc.)
143+
/@inheritdoc\b/.test(t.value) // require @inheritdoc exacto (no "@ inheritdoc", etc.)
144144
)
145145

146146
inheritdocTokens.forEach(({ value }) => {

lib/rules/gas-consumption/gas-calldata-parameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const meta = {
2424
category: 'Gas Consumption Rules',
2525
notes: [
2626
{
27-
note: 'Only applies for external functions when receiving arguments with [memory] keyword',
27+
note: 'Only applies to external functions when receiving arguments with [memory] keyword',
2828
},
2929
{
3030
note: 'This rule makes a soft check to see if argument is readOnly to make the suggestion. Check it manually before changing it.',

0 commit comments

Comments
 (0)