Skip to content

Commit f4e0605

Browse files
authored
Fix multiple unit diff example
1 parent 159567d commit f4e0605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/math.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ Finally, you can diff using multiple units:
173173

174174
```js
175175
var end = DateTime.fromISO('2017-03-13');
176-
var start = DateTime.fromISO('2017-02-15');
177-
end.diff(start, ['months', 'days']) //=> { months: 1, days: 2 }
176+
var start = DateTime.fromISO('2017-02-11');
177+
end.diff(start, ['months', 'days']).toObject() //=> { months: 1, days: 2 }
178178
```
179179

180180
### Casual vs longterm conversion accuracy

0 commit comments

Comments
 (0)