Skip to content

Commit

Permalink
Fix reduceRight documentation
Browse files Browse the repository at this point in the history
Example contains `reduce` rather than `reduceRight`.
  • Loading branch information
macalinao committed Dec 6, 2015
1 parent f467edf commit 16ff9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/reduceRight.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Foo extends React.Component {

```jsx
const wrapper = mount(<Foo />);
const total = wrapper.find(Bar).reduce((amount, n) => amount + n.prop('amount'));
const total = wrapper.find(Bar).reduceRight((amount, n) => amount + n.prop('amount'));
expect(total).to.equal(16);
```

Expand Down

0 comments on commit 16ff9c0

Please sign in to comment.