Skip to content

Commit 22e6c3e

Browse files
authored
[skip ci] Tiny document fix: args is not used
1 parent ac12598 commit 22e6c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ function mapStateToProps() {
100100
```
101101
```javascript
102102
const mapStateToProps = (...args) => {
103-
console.log(arguments[0]); // state
104-
console.log(arguments[1]); // ownProps
103+
console.log(args[0]); // state
104+
console.log(args[1]); // ownProps
105105
}
106106
```
107107

0 commit comments

Comments
 (0)