Skip to content

Commit

Permalink
Merge pull request #186 from arilotter/patch-1
Browse files Browse the repository at this point in the history
Fix typo in readme.md
  • Loading branch information
mweststrate committed Sep 13, 2018
2 parents 0a80c2c + 0a96aeb commit d6d0f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ produce(draft => void (draft.user.age += 1))
produce(draft => void (draft.user.age += 1, draft.user.height = 186))
```

Code style is highly personal, but for code bases that are to be understood by many, we recommend to stick to the classic `draft = { draft.user.age += 1}` to avoid cognitive overhead.
Code style is highly personal, but for code bases that are to be understood by many, we recommend to stick to the classic `draft => { draft.user.age += 1}` to avoid cognitive overhead.

## TypeScript or Flow

Expand Down

0 comments on commit d6d0f69

Please sign in to comment.