Skip to content

Commit

Permalink
docs: Update typo of string formatting output
Browse files Browse the repository at this point in the history
The actual output is: `28 février 22`

This example demonstrates date wrap around the era notation, but doesn't note the era. An alternative example might demonstrate subtraction without passing past 0 CE, but for now let's just fix the typo.
  • Loading branch information
kepae authored and ptomato committed Feb 18, 2025
1 parent 69f46d5 commit 85fb212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ zdt.withTimeZone('Europe/Paris')
.toPlainDate()
.subtract({ years: 3000 })
.toLocaleString('fr-FR', { calendar: 'gregory', dateStyle: 'long' });
// => "28 février 2022"
// => "28 février 979"

zdt.withTimeZone('America/New_York')
.toPlainDate()
Expand Down

0 comments on commit 85fb212

Please sign in to comment.