Skip to content

Commit

Permalink
fix doc examples using new results
Browse files Browse the repository at this point in the history
TODO: add tests for all doc examples
  • Loading branch information
patch committed Sep 24, 2015
1 parent 9137eb1 commit c1f9c32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $cldr = CLDR::Number->new(locale => 'es');
$decf = $cldr->decimal_formatter;

# when locale is 'es' (Spanish)
say $decf->format(1234.5); # '1.234,5'
say $decf->format(1234.5); # '1234,5'

# when locale is 'es-MX' (Mexican Spanish)
say $decf->format(1234.5); # '1,234.5'
Expand Down
2 changes: 1 addition & 1 deletion lib/CLDR/Number.pm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This document describes CLDR::Number v0.16, built with Unicode CLDR v28.
$decf = $cldr->decimal_formatter;
# when locale is 'es' (Spanish)
say $decf->format(1234.5); # '1.234,5'
say $decf->format(1234.5); # '1234,5'
# when locale is 'es-MX' (Mexican Spanish)
say $decf->format(1234.5); # '1,234.5'
Expand Down
2 changes: 1 addition & 1 deletion lib/CLDR/Number/Format/Decimal.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ CLDR v28.
$decf = $cldr->decimal_formatter;
# when locale is 'es' (Spanish)
say $decf->format(1234.5); # '1.234,5'
say $decf->format(1234.5); # '1234,5'
# when locale is 'es-MX' (Mexican Spanish)
say $decf->format(1234.5); # '1,234.5'
Expand Down

0 comments on commit c1f9c32

Please sign in to comment.