Skip to content

Commit

Permalink
doc: fix icu-small example
Browse files Browse the repository at this point in the history
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: #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>
  • Loading branch information
mhdawson authored and targos committed Jul 31, 2022
1 parent 6353a4d commit c1ea44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/intl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

Expand Down

0 comments on commit c1ea44d

Please sign in to comment.