Skip to content

Commit

Permalink
Correct doc references
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Mar 21, 2021
1 parent ac32779 commit 57fcd01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions lib/cldr/unit.ex
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@ defmodule Cldr.Unit do
case, which is also the default.
* `:gender` indicates that a localisation for the given
locale and given grammatical gender should be used. See `Cldr.Unit.known_gender/0`
locale and given grammatical gender should be used.
See `Cldr.Unit.known_grammatical_genders/0`
for the list of known grammatical genders. Note that not all locales
define all genders. The default gender is `Cldr.Unit.default_gender/1`
for the given locale.
define all genders.
* `:list_options` is a keyword list of options for formatting a list
which is passed through to `Cldr.List.to_string/3`. This is only
Expand Down
20 changes: 9 additions & 11 deletions lib/cldr/unit/format.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule Cldr.Unit.Format do
* `:locale` is any valid locale name returned by `Cldr.known_locale_names/1`
or a `Cldr.LanguageTag` struct. The default is `Cldr.get_locale/0`
* `style` is one of those returned by `Cldr.Unit.styles`.
* `style` is one of those returned by `Cldr.Unit.known_styles/0`.
The current styles are `:long`, `:short` and `:narrow`.
The default is `style: :long`
Expand All @@ -75,10 +75,10 @@ defmodule Cldr.Unit.Format do
case, which is also the default.
* `:gender` indicates that a localisation for the given
locale and given grammatical gender should be used. See `Cldr.Unit.known_gender/0`
locale and given grammatical gender should be used.
See `Cldr.Unit.known_grammatical_genders/0`
for the list of known grammatical genders. Note that not all locales
define all genders. The default gender is `Cldr.Unit.default_gender/1`
for the given locale.
define all genders.
* `:list_options` is a keyword list of options for formatting a list
which is passed through to `Cldr.List.to_string/3`. This is only
Expand Down Expand Up @@ -344,10 +344,9 @@ defmodule Cldr.Unit.Format do
case, which is also the default.
* `:gender` indicates that a localisation for the given
locale and given grammatical gender should be used. See `Cldr.Unit.known_gender/0`
locale and given grammatical gender should be used. See `Cldr.Unit.known_grammatical_genders/0`
for the list of known grammatical genders. Note that not all locales
define all genders. The default gender is `Cldr.Unit.default_gender/1`
for the given locale.
define all genders.
* `:list_options` is a keyword list of options for formatting a list
which is passed through to `Cldr.List.to_string/3`. This is only
Expand Down Expand Up @@ -462,7 +461,7 @@ defmodule Cldr.Unit.Format do
* `:locale` is any valid locale name returned by `Cldr.known_locale_names/0`
or a `Cldr.LanguageTag` struct. The default is `Cldr.get_locale/0`
* `:style` is one of those returned by `Cldr.Unit.available_styles/0`.
* `:style` is one of those returned by `Cldr.Unit.known_styles/0`.
The current styles are `:long`, `:short` and `:narrow`.
The default is `style: :long`.
Expand All @@ -473,10 +472,9 @@ defmodule Cldr.Unit.Format do
case, which is also the default.
* `:gender` indicates that a localisation for the given
locale and given grammatical gender should be used. See `Cldr.Unit.known_gender/0`
locale and given grammatical gender should be used. See `Cldr.Unit.known_grammatical_genders/0`
for the list of known grammatical genders. Note that not all locales
define all genders. The default gender is `Cldr.Unit.default_gender/1`
for the given locale.
define all genders.
* `:list_options` is a keyword list of options for formatting a list
which is passed through to `Cldr.List.to_string/3`. This is only
Expand Down

0 comments on commit 57fcd01

Please sign in to comment.