diff --git a/docs/rules/naming/named-parameters-mapping.md b/docs/rules/naming/named-parameters-mapping.md index 1f3d1a81..fe793ea6 100644 --- a/docs/rules/naming/named-parameters-mapping.md +++ b/docs/rules/naming/named-parameters-mapping.md @@ -39,7 +39,7 @@ mapping(string name => uint256 balance) public users; mapping(address owner => mapping(address token => uint256 balance)) public tokenBalances; ``` -#### Main key of mapping is enforced. On nested mappings other naming are not neccesary +#### Main key of mapping is enforced. On nested mappings other naming are not necessary ```solidity mapping(address owner => mapping(address => uint256)) public tokenBalances; diff --git a/e2e/test.js b/e2e/test.js index 2d77e757..59c2bfd7 100644 --- a/e2e/test.js +++ b/e2e/test.js @@ -96,7 +96,7 @@ describe('e2e', function () { const PATH = '03-no-empty-blocks' const { PREFIX, SUFFIX } = prepareContext(PATH) - it('No contracts to lint should fail with appropiate message', function () { + it('No contracts to lint should fail with appropriate message', function () { const { code, stderr } = shell.exec(`${NODE}solhint Foo1.sol ${SUFFIX}`) expect(code).to.equal(EXIT_CODES.BAD_OPTIONS) diff --git a/lib/rules/naming/named-parameters-mapping.js b/lib/rules/naming/named-parameters-mapping.js index c170fa62..a798abc8 100644 --- a/lib/rules/naming/named-parameters-mapping.js +++ b/lib/rules/naming/named-parameters-mapping.js @@ -20,7 +20,7 @@ const meta = { }, { description: - 'Main key of mapping is enforced. On nested mappings other naming are not neccesary', + 'Main key of mapping is enforced. On nested mappings other naming are not necessary', code: 'mapping(address owner => mapping(address => uint256)) public tokenBalances;', }, {