Skip to content

Commit

Permalink
Fix typos in intlFormat examples (#3520)
Browse files Browse the repository at this point in the history
Co-authored-by: sarab5000 <32688470+sarab5000@users.noreply.github.com>
  • Loading branch information
tareknatsheh and sarab5000 committed Mar 12, 2024
1 parent f3d5ad2 commit cb65a5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/intlFormat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface IntlFormatLocaleOptions {
* @throws `date` must not be Invalid Date
*
* @example
* // Represent 10 October 2019 in middle-endian format:
* // Represent 4 October 2019 in middle-endian format:
* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456))
* //=> 10/4/2019
*/
Expand All @@ -58,7 +58,7 @@ export function intlFormat<DateType extends Date>(
* @throws `date` must not be Invalid Date
*
* @example
* // Represent 10 October 2019 in Korean.
* // Represent 4 October 2019 in Korean.
* // Convert the date with locale's options.
* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), {
* locale: 'ko-KR',
Expand All @@ -81,7 +81,7 @@ export function intlFormat<DateType extends Date>(
* @throws `date` must not be Invalid Date
*
* @example
* // Represent 10 October 2019.
* // Represent 4 October 2019.
* // Convert the date with format's options.
* const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), {
* year: 'numeric',
Expand All @@ -108,7 +108,7 @@ export function intlFormat<DateType extends Date>(
* @throws `date` must not be Invalid Date
*
* @example
* // Represent 10 October 2019 in German.
* // Represent 4 October 2019 in German.
* // Convert the date with format's options and locale's options.
* const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), {
* weekday: 'long',
Expand Down

0 comments on commit cb65a5f

Please sign in to comment.