From aed545b58091a84c0dc49aa53cd17f46da20e90e Mon Sep 17 00:00:00 2001 From: Mike Stringer Date: Tue, 12 Nov 2024 13:56:09 -0600 Subject: [PATCH] fixed typo (incorrect return value) in features/interval documentation --- docs/features/intervals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/intervals.md b/docs/features/intervals.md index f631ecdea0..a672c9e71a 100644 --- a/docs/features/intervals.md +++ b/docs/features/intervals.md @@ -21,7 +21,7 @@ The *interval*.**offset** method takes a *value* and returns the corresponding v ```js Plot.utcInterval("day").offset(new Date("2013-04-12T12:34:56Z"), 1) // 2013-04-13T12:34:56Z -Plot.utcInterval("day").offset(new Date("2013-04-12T12:34:56Z"), -2) // 2013-03-22T12:34:56Z +Plot.utcInterval("day").offset(new Date("2013-04-12T12:34:56Z"), -2) // 2013-04-10T12:34:56Z ``` 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.