Skip to content

Commit

Permalink
fix(js): Fix invalid output in RelativeTimeFormat example (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedziolkaMichal committed Apr 4, 2023
1 parent eaa86eb commit 76b9274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rtf1 = new Intl.RelativeTimeFormat('en', { style: 'narrow' });
const rtf1 = new Intl.RelativeTimeFormat('en', { style: 'short' });

console.log(rtf1.format(3, 'quarter'));
// Expected output: "in 3 qtrs."
Expand Down
2 changes: 1 addition & 1 deletion live-examples/js-examples/intl/intl-relativetimeformat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rtf1 = new Intl.RelativeTimeFormat('en', { style: 'narrow' });
const rtf1 = new Intl.RelativeTimeFormat('en', { style: 'short' });

console.log(rtf1.format(3, 'quarter'));
// Expected output: "in 3 qtrs."
Expand Down

0 comments on commit 76b9274

Please sign in to comment.