Skip to content

Commit

Permalink
Fix variable name in example (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Radbourne <[email protected]>
  • Loading branch information
mradbourne and mradbourne authored Feb 3, 2024
1 parent 75ff3a0 commit 6a223ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mf1.format(); // 'Hello!'

// A parametric message, formatted to parts
const mf2 = new Intl.MessageFormat('Hello {$place}!', 'en');
const greet = mf.formatToParts({ place: "world" });
const greet = mf2.formatToParts({ place: "world" });
/* [
{ type: 'text', value: 'Hello ' },
{ type: 'string', source: '$place', value: 'world' },
Expand Down

0 comments on commit 6a223ce

Please sign in to comment.