Skip to content

Commit

Permalink
[doc]fix error example
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankunpeng committed Mar 24, 2019
1 parent edd3a20 commit b14b7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/ShallowWrapper/reduceRight.md
Expand Up @@ -36,8 +36,8 @@ function Foo() {

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


Expand Down

0 comments on commit b14b7e5

Please sign in to comment.