Skip to content

Commit

Permalink
Merge pull request #221 from kianmeng/fix-more-typos
Browse files Browse the repository at this point in the history
Fix more typos
  • Loading branch information
kipcole9 authored Nov 20, 2023
2 parents cd87625 + 7566819 commit f6112a8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/cldr/accept_language.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ defmodule Cldr.AcceptLanguage do
If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.
## Example
Expand Down Expand Up @@ -227,7 +227,7 @@ defmodule Cldr.AcceptLanguage do
If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.
## Example
Expand Down Expand Up @@ -330,7 +330,7 @@ defmodule Cldr.AcceptLanguage do
Parse an `Accept-Language` string and return the best match for
a configured `Cldr` locale.
* `accept_langauge` is a string representing an accept language header
* `accept_language` is a string representing an accept language header
Returns:
Expand Down
6 changes: 3 additions & 3 deletions lib/cldr/backend/accept_language.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule Cldr.AcceptLanguage.Backend do
If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.
## Example
Expand Down Expand Up @@ -182,7 +182,7 @@ defmodule Cldr.AcceptLanguage.Backend do
If at least one valid language tag is found but errors are also
detected on one more more tags, an `{ok, list}` tuple is returned
wuth an error tuple for each invalid tag added at the end of the list.
with an error tuple for each invalid tag added at the end of the list.
## Example
Expand Down Expand Up @@ -284,7 +284,7 @@ defmodule Cldr.AcceptLanguage.Backend do
## Arguments
* `accept_langauge` is a string representing an accept language header
* `accept_language` is a string representing an accept language header
## Returns
Expand Down
2 changes: 1 addition & 1 deletion lib/cldr/config/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ defmodule Cldr.Config do
@spec language_tag(Locale.locale_name()) :: Cldr.LanguageTag.t() | no_return()

# Even if compiling its possible, at the beginning, that
# the cache server isn't fully up and runing to we return a
# the cache server isn't fully up and running to we return a
# non-cached version is absolutely necessary

def language_tag(locale_name) do
Expand Down
4 changes: 2 additions & 2 deletions lib/cldr/language_tag.ex
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ defmodule Cldr.LanguageTag do
end

@doc """
Parse a locale name into a `Cldr.LangaugeTag` struct and raises on error
Parse a locale name into a `Cldr.LanguageTag` struct and raises on error
## Arguments
Expand Down Expand Up @@ -247,7 +247,7 @@ defmodule Cldr.LanguageTag do
* `locale` is a `Cldr.LanguageTag` struct returned by `Cldr.Locale.new!/2`
* `omit_singlular_script?` is a boolean indicating if the
* `omit_singular_script?` is a boolean indicating if the
script name should be omitted if the landuage_tag territory has
only this one script. The default is `false`.
Expand Down
4 changes: 2 additions & 2 deletions lib/cldr/locale.ex
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ defmodule Cldr.Locale do
## Returns
* `{:ok, langauge_tag}` or
* `{:ok, language_tag}` or
* `{:error, {exception, reason}}`
Expand Down Expand Up @@ -1945,7 +1945,7 @@ defmodule Cldr.Locale do
* `omit_singular_script?` is a boolean indicating if
a match should fail if the language tag script is the only
(default) script for the lanaguge. The default is `false`.
(default) script for the language. The default is `false`.
## Returns
Expand Down

0 comments on commit f6112a8

Please sign in to comment.