{{ message }}

# Fix Diff documentation#237

Merged
merged 3 commits into from Nov 12, 2020
Merged

# Fix Diff documentation#237

merged 3 commits into from Nov 12, 2020

## Conversation

### dsnet commented Oct 15, 2020 • edited

 The description inaccurately describes the operation of Diff, which is y - x, where a '+' prefix denotes elements added from y and a '-' prefix denotes elements removed from x. For example: ``````// Consider this call to Diff and its result. x y cmp.Diff({b:2, c:3}, {a:1, b:2}) => {+a:1, b:2, -c:3} // Consider the same in mathematical notation. y - x {a:1, b:2} - {b:2, c:3} = {+a:1, b:2, -c:3} `````` The text was updated successfully, but these errors were encountered:
``` Fix Diff documentation ```
``` b72042d ```
```The description inaccurately describes the operation of Diff,
which is y - x, where a '+' prefix denotes elements added from y
and a '-' prefix denotes elements removed from x.

For example:
// Consider this call to Diff and its result.
x  y
cmp.Diff({b:2, c:3}, {a:1, b:2}) => {+a:1, b:2, -c:3}

// Consider the same in mathematical notation.
y - x
{a:1, b:2} - {b:2, c:3} = {+a:1, b:2, -c:3}```
``` Merge branch 'master' into doc ```
``` c2cbac1 ``` approved these changes
``` Merge branch 'master' into doc ```
``` 864ba1f ```