diff --git a/README.md b/README.md index 9586859..170b60b 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ const shouldDisplayPagination = (postsCount > 10); * Name should not duplicate the context when the latter is known, and when removing the context from the name does not decrease its readability: ```js class MenuItem { - /* Method name duplicates the context it is in "...MenuItem..." */ + /* Method name duplicates the context it is in (which is "MenuItem") */ handleMenuItemClick = (event) => { ... } /* This way it reads as MenuItem.handleClick() */ handleClick = (event) => { ... } } ``` -* Name should reflect expected result: +* Name should reflect the expected result: ```js /* Bad */ const isEnabled = (itemsCount > 3); @@ -60,12 +60,10 @@ return (