Skip to content

Commit e5adcfe

Browse files
fixed typo (incorrect return value) in features/interval documentation (#2227)
1 parent 700c6ee commit e5adcfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/intervals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The *interval*.**offset** method takes a *value* and returns the corresponding v
2121

2222
```js
2323
Plot.utcInterval("day").offset(new Date("2013-04-12T12:34:56Z"), 1) // 2013-04-13T12:34:56Z
24-
Plot.utcInterval("day").offset(new Date("2013-04-12T12:34:56Z"), -2) // 2013-03-22T12:34:56Z
24+
Plot.utcInterval("day").offset(new Date("2013-04-12T12:34:56Z"), -2) // 2013-04-10T12:34:56Z
2525
```
2626

2727
The *interval*.**range** method returns an array of values representing every interval boundary greater than or equal to *start* (inclusive) and less than *stop* (exclusive). The first value in the returned array is the least boundary greater than or equal to *start*; subsequent values are offset by intervals and floored.

0 commit comments

Comments
 (0)