From 6b4f7fea97e983ce84cf08c2e24aab6ab5c37478 Mon Sep 17 00:00:00 2001 From: Per Eriksson Date: Thu, 16 Apr 2026 19:36:35 +0200 Subject: [PATCH] toRelativeCalendar docs typo (#1771) --- src/datetime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datetime.js b/src/datetime.js index a528c76e7..78553b3b5 100644 --- a/src/datetime.js +++ b/src/datetime.js @@ -2312,7 +2312,7 @@ export default class DateTime { * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days" * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow" - * @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana" + * @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelativeCalendar() //=> "mañana" * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain" * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago" */