Skip to content

Commit 7ed4674

Browse files
authored
Update README.md
This PR fixes some spelling and grammar mistakes
1 parent 4a57f1d commit 7ed4674

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Although these suggestions can be applied to any programming language, I will us
2626

2727
## Naming convention
2828

29-
Pick **one** naming convention and follow it. It may be `cammelCase`, or `snake_case`, or anyhow else, it does not matter. What matters is for it to remain consistent.
29+
Pick **one** naming convention and follow it. It may be `camelCase`, or `snake_case`, or anyhow else, it does not matter. What matters is for it to remain consistent.
3030

3131
```js
3232
/* Bad */
@@ -88,7 +88,7 @@ class MenuItem {
8888
}
8989
```
9090

91-
## Reflect expected result
91+
## Reflect the expected result
9292

9393
A name should reflect the expected result.
9494

@@ -123,7 +123,7 @@ Take a look at how this pattern may be applied in the table below.
123123
| `handleClickOutside` | | `handle` | `Click` | `Outside` |
124124
| `shouldDisplayMessage` | `should` | `Display` | `Message` | |
125125

126-
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling whether it should do that right now.
126+
> **Note:** The order of context affects the meaning of a variable. For example, `shouldUpdateComponent` means _you_ are about to update a component, while `shouldComponentUpdate` tells you that _component_ will update on itself, and you are but controlling when it should be updated.
127127
> In other words, **high context emphasizes the meaning of a variable**.
128128
129129
---
@@ -179,7 +179,7 @@ console.log(fruits) // 5
179179

180180
### `fetch`
181181

182-
Requests for a data, which takes time (i.e. async request).
182+
Request for some data, which takes some indeterminate time (i.e. async request).
183183

184184
```js
185185
function fetchPosts(postCount) {
@@ -206,7 +206,7 @@ removeFilter('price', selectedFilters)
206206
207207
### `delete`
208208

209-
Completely erazes something from the realms of existence.
209+
Completely erases something from the realms of existence.
210210

211211
Imagine you are a content editor, and there is that notorious post you wish to get rid of. Once you clicked a shiny "Delete post" button, the CMS performed a `deletePost` action, **not** `removePost`.
212212

@@ -309,11 +309,11 @@ function shouldUpdateUrl(url, expectedUrl) {
309309

310310
### `min`/`max`
311311

312-
Represent minimum or maximum value. Used when describing boundaries or limits.
312+
Represents a minimum or maximum value. Used when describing boundaries or limits.
313313

314314
```js
315315
/**
316-
* Renders random amount of posts within
316+
* Renders a random amount of posts within
317317
* the given min/max boundaries.
318318
*/
319319
function renderPosts(posts, minPosts, maxPosts) {

0 commit comments

Comments
 (0)