Skip to content

Commit 3bd9767

Browse files
eksperimentalwhatyouhide
authored andcommitted
Use proper case for proper nouns and acronyms
Use proper case for proper nouns (e.g., Elixir, Rebar, Git, and others) as well as acronyms (e.g., URL, HTTP, and others).
1 parent 4535648 commit 3bd9767

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+143
-143
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ By restricting hierarchies in favor of named setups, it is straight-forward for
370370
#### Mix
371371

372372
* [Mix] Improve task not found message when Mix would include the not found task as a suggestion due to different casing
373-
* [Mix] Ignore lock revision when the lock is out of date when updating Mix dependencies. Before this fix, git tags and branches in the lock file would erroneously take higher precedence than the one in `mix.exs`
373+
* [Mix] Ignore lock revision when the lock is out of date when updating Mix dependencies. Before this fix, Git tags and branches in the lock file would erroneously take higher precedence than the one in `mix.exs`
374374
* [Mix] Only recompile empty Elixir files if they change instead of recompiling them on every run
375375
* [Mix] Ensure .app file is written in UTF-8 (this allows app descriptions to contain UTF-8 characters)
376376
* [Mix.Dep] Always specify the `:env` option internally for dependencies to avoid false positives in the dependency resolution

bin/elixir.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo.
2121
echo --app APP Starts the given app and its dependencies (*)
2222
echo --cookie COOKIE Sets a cookie for this distributed node
2323
echo --detached Starts the Erlang VM detached from console
24-
echo --erl SWITCHES Switches to be passed down to erlang (*)
24+
echo --erl SWITCHES Switches to be passed down to Erlang (*)
2525
echo --hidden Makes a hidden node
2626
echo --logger-otp-reports BOOL Enables or disables OTP reporting
2727
echo --logger-sasl-reports BOOL Enables or disables SASL reporting
@@ -32,7 +32,7 @@ echo --werl Uses Erlang's Windows shell GUI
3232
echo.
3333
echo ** Options marked with (*) can be given more than once
3434
echo ** Options given after the .exs file or -- are passed down to the executed code
35-
echo ** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTIONS or --erl
35+
echo ** Options can be passed to the Erlang runtime using ELIXIR_ERL_OPTIONS or --erl
3636
goto end
3737

3838
:parseopts
@@ -70,7 +70,7 @@ if "%par%"=="""" (
7070
rem ******* EXECUTION OPTIONS **********************
7171
IF "%par%"==""--werl"" (Set useWerl=1)
7272
IF "%par%"==""+iex"" (Set runMode="iex")
73-
rem ******* elixir parameters **********************
73+
rem ******* ELIXIR PARAMETERS **********************
7474
rem Note: we don't have to do anything with options that don't take an argument
7575
IF """"=="%par:-e=%" (shift)
7676
IF """"=="%par:-r=%" (shift)

bin/elixirc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ if [ $# -eq 0 ] || [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
1010
--ignore-module-conflict
1111
1212
** Options given after -- are passed down to the executed code
13-
** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTIONS
14-
** Options can be passed to the erlang compiler using ERL_COMPILER_OPTIONS" >&2
13+
** Options can be passed to the Erlang runtime using ELIXIR_ERL_OPTIONS
14+
** Options can be passed to the Erlang compiler using ERL_COMPILER_OPTIONS" >&2
1515
exit 1
1616
fi
1717

lib/eex/lib/eex/engine.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ defmodule EEx.Engine do
8888
val
8989
:error ->
9090
keys = Enum.map(assigns, &elem(&1, 0))
91-
IO.warn "assign @#{key} not available in eex template. " <>
91+
IO.warn "assign @#{key} not available in EEx template. " <>
9292
"Please ensure all assigns are given as options. " <>
9393
"Available assigns: #{inspect keys}"
9494
nil

lib/eex/test/eex/smart_engine_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule EEx.SmartEngineTest do
2121
stderr = capture_io(:stderr, fn ->
2222
assert_eval "", "<%= @foo %>", assigns: %{}
2323
end)
24-
assert stderr =~ "assign @foo not available in eex template"
24+
assert stderr =~ "assign @foo not available in EEx template"
2525
end
2626

2727
test "evaluates with loops" do

lib/elixir/lib/calendar.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ defmodule DateTime do
977977
end
978978

979979
@doc """
980-
Converts the given unix time to DateTime.
980+
Converts the given Unix time to DateTime.
981981
982982
The integer can be given in different unit
983983
according to `System.convert_time_unit/3` and it will
@@ -1032,7 +1032,7 @@ defmodule DateTime do
10321032
do: precision_for_unit(div(number, 10), precision + 1)
10331033

10341034
@doc """
1035-
Converts the given unix time to DateTime.
1035+
Converts the given Unix time to DateTime.
10361036
10371037
## Examples
10381038
@@ -1054,7 +1054,7 @@ defmodule DateTime do
10541054
end
10551055

10561056
@doc """
1057-
Converts the given DateTime to unix time.
1057+
Converts the given DateTime to Unix time.
10581058
10591059
The DateTime is expected to be UTC using the ISO calendar
10601060
with a year greater than or equal to 1970.

lib/elixir/lib/file.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ defmodule File do
411411
@doc """
412412
Copies the contents of `source` to `destination`.
413413
414-
Both parameters can be a filename or an io device opened
414+
Both parameters can be a filename or an IO device opened
415415
with `open/2`. `bytes_count` specifies the number of
416416
bytes to copy, the default being `:infinity`.
417417
@@ -485,7 +485,7 @@ defmodule File do
485485
The function returns `:ok` in case of success, returns
486486
`{:error, reason}` otherwise.
487487
488-
If you want to copy contents from an io device to another device
488+
If you want to copy contents from an IO device to another device
489489
or do a straight copy from a source to a destination without
490490
preserving modes, check `copy/3` instead.
491491
@@ -878,7 +878,7 @@ defmodule File do
878878
end
879879
end
880880

881-
# On windows, symlinks are treated as directory and must be removed
881+
# On Windows, symlinks are treated as directory and must be removed
882882
# with rmdir/1. But on Unix, we remove them via rm/1. So we first try
883883
# to remove it as a directory and, if we get :enotdir, we fallback to
884884
# a file removal.

lib/elixir/lib/file/stat.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule File.Stat do
3232
systems which have no concept of links.
3333
3434
* `major_device` - identifies the file system where the file is located.
35-
In windows, the number indicates a drive as follows: 0 means A:, 1 means
35+
In Windows, the number indicates a drive as follows: 0 means A:, 1 means
3636
B:, and so on.
3737
3838
* `minor_device` - only valid for character devices on Unix. In all other

lib/elixir/lib/gen_event.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ defmodule GenEvent do
312312

313313
@doc false
314314
def handle_call(msg, state) do
315-
# We do this to trick dialyzer to not complain about non-local returns.
315+
# We do this to trick Dialyzer to not complain about non-local returns.
316316
reason = {:bad_call, msg}
317317
case :erlang.phash2(1, 1) do
318318
0 -> exit(reason)

lib/elixir/lib/gen_event/stream.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GenEvent.Stream do
2222

2323
@doc false
2424
def handle_event(event, _state) do
25-
# We do this to trick dialyzer to not complain about non-local returns.
25+
# We do this to trick Dialyzer to not complain about non-local returns.
2626
case :erlang.phash2(1, 1) do
2727
0 -> exit({:bad_event, event})
2828
1 -> :remove_handler
@@ -31,7 +31,7 @@ defmodule GenEvent.Stream do
3131

3232
@doc false
3333
def handle_call(msg, _state) do
34-
# We do this to trick dialyzer to not complain about non-local returns.
34+
# We do this to trick Dialyzer to not complain about non-local returns.
3535
reason = {:bad_call, msg}
3636
case :erlang.phash2(1, 1) do
3737
0 -> exit(reason)

0 commit comments

Comments
 (0)