elixir-cldr / cldr_units

Unit formatting (volume, area, length, ...) functions for the Common Locale Data Repository (CLDR)
Other
16 stars 13 forks source link

Readme typo in a convert example #16

Closed DamienFriot closed 3 years ago

DamienFriot commented 3 years ago

Thanks for your library!

An example in the Readme has apparently a typo: MyApp.Cldr.Unit.convert MyApp.Cldr.Unit.new(:foot, 3), :meter To make it work, I have to use new!

kipcole9 commented 3 years ago

Thanks for the report. Fixed in master and I'll publish when I update for the feature request you have in issue #18.

The changelog entry is:

Bug Fixes