mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
doc: fix icu-small example
Running the same in the icu doc shows that for icu-small the output is January instead of M01. Update the example in the doc to match. Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/43591 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
1 parent
48ee6b9dc9
commit
23c5de3579
1 file changed
+1
-1
+1
-1
@@ -103,7 +103,7 @@ const spanish = new Intl.DateTimeFormat('es', { month: 'long' });
|
||||
console.log(english.format(january));
|
||||
// Prints "January"
|
||||
console.log(spanish.format(january));
|
||||
// Prints "M01" on small-icu
|
||||
// Prints either "M01" or "January" on small-icu, depending on the user’s default locale
|
||||
// Should print "enero"
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user