Skip to content

Commit

Permalink
[Intl.DurationFormat] fix comment/code mismatch (#32284)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle authored Feb 14, 2024
1 parent 27977f9 commit a7bac14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ new Intl.DurationFormat("fr-FR", { style: "long" }).format(duration);
new Intl.DurationFormat("en", { style: "short" }).format(duration);
// "1 hr, 46 min and 40 sec"

// With style set to "short" and locale "pt"
// With style set to "narrow" and locale "pt"
new Intl.DurationFormat("pt", { style: "narrow" }).format(duration);
// "1h 46min 40s"
```
Expand Down

0 comments on commit a7bac14

Please sign in to comment.