Skip to content

Commit 8e4a0aa

Browse files
authored
Replace semi-column by comma before otherwise (#13535)
1 parent 5cbea01 commit 8e4a0aa

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

lib/elixir/lib/bitwise.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Bitwise do
22
@moduledoc """
33
A set of functions that perform calculations on bits.
44
5-
All bitwise functions work only on integers; otherwise an
5+
All bitwise functions work only on integers, otherwise an
66
`ArithmeticError` is raised. The functions `band/2`,
77
`bor/2`, `bsl/2`, and `bsr/2` also have operators,
88
respectively: `&&&/2`, `|||/2`, `<<</2`, and `>>>/2`.

lib/elixir/lib/kernel.ex

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ defmodule Kernel do
636636
end
637637

638638
@doc """
639-
Returns `true` if `term` is an atom; otherwise returns `false`.
639+
Returns `true` if `term` is an atom, otherwise returns `false`.
640640
641641
Allowed in guard tests. Inlined by the compiler.
642642
@@ -662,7 +662,7 @@ defmodule Kernel do
662662
end
663663

664664
@doc """
665-
Returns `true` if `term` is a binary; otherwise returns `false`.
665+
Returns `true` if `term` is a binary, otherwise returns `false`.
666666
667667
A binary always contains a complete number of bytes.
668668
@@ -683,7 +683,7 @@ defmodule Kernel do
683683
end
684684

685685
@doc """
686-
Returns `true` if `term` is a bitstring (including a binary); otherwise returns `false`.
686+
Returns `true` if `term` is a bitstring (including a binary), otherwise returns `false`.
687687
688688
Allowed in guard tests. Inlined by the compiler.
689689
@@ -703,7 +703,7 @@ defmodule Kernel do
703703

704704
@doc """
705705
Returns `true` if `term` is either the atom `true` or the atom `false` (i.e.,
706-
a boolean); otherwise returns `false`.
706+
a boolean), otherwise returns `false`.
707707
708708
Allowed in guard tests. Inlined by the compiler.
709709
@@ -726,7 +726,7 @@ defmodule Kernel do
726726
end
727727

728728
@doc """
729-
Returns `true` if `term` is a floating-point number; otherwise returns `false`.
729+
Returns `true` if `term` is a floating-point number, otherwise returns `false`.
730730
731731
Allowed in guard tests. Inlined by the compiler.
732732
"""
@@ -737,7 +737,7 @@ defmodule Kernel do
737737
end
738738

739739
@doc """
740-
Returns `true` if `term` is a function; otherwise returns `false`.
740+
Returns `true` if `term` is a function, otherwise returns `false`.
741741
742742
Allowed in guard tests. Inlined by the compiler.
743743
@@ -777,7 +777,7 @@ defmodule Kernel do
777777
end
778778

779779
@doc """
780-
Returns `true` if `term` is an integer; otherwise returns `false`.
780+
Returns `true` if `term` is an integer, otherwise returns `false`.
781781
782782
Allowed in guard tests. Inlined by the compiler.
783783
"""
@@ -788,7 +788,7 @@ defmodule Kernel do
788788
end
789789

790790
@doc """
791-
Returns `true` if `term` is a list with zero or more elements; otherwise returns `false`.
791+
Returns `true` if `term` is a list with zero or more elements, otherwise returns `false`.
792792
793793
Allowed in guard tests. Inlined by the compiler.
794794
"""
@@ -811,7 +811,7 @@ defmodule Kernel do
811811
end
812812

813813
@doc """
814-
Returns `true` if `term` is a PID (process identifier); otherwise returns `false`.
814+
Returns `true` if `term` is a PID (process identifier), otherwise returns `false`.
815815
816816
Allowed in guard tests. Inlined by the compiler.
817817
"""
@@ -822,7 +822,7 @@ defmodule Kernel do
822822
end
823823

824824
@doc """
825-
Returns `true` if `term` is a port identifier; otherwise returns `false`.
825+
Returns `true` if `term` is a port identifier, otherwise returns `false`.
826826
827827
Allowed in guard tests. Inlined by the compiler.
828828
"""
@@ -833,7 +833,7 @@ defmodule Kernel do
833833
end
834834

835835
@doc """
836-
Returns `true` if `term` is a reference; otherwise returns `false`.
836+
Returns `true` if `term` is a reference, otherwise returns `false`.
837837
838838
Allowed in guard tests. Inlined by the compiler.
839839
"""
@@ -844,7 +844,7 @@ defmodule Kernel do
844844
end
845845

846846
@doc """
847-
Returns `true` if `term` is a tuple; otherwise returns `false`.
847+
Returns `true` if `term` is a tuple, otherwise returns `false`.
848848
849849
Allowed in guard tests. Inlined by the compiler.
850850
"""
@@ -882,7 +882,7 @@ defmodule Kernel do
882882
end
883883

884884
@doc """
885-
Returns `true` if `key` is a key in `map`; otherwise returns `false`.
885+
Returns `true` if `key` is a key in `map`, otherwise returns `false`.
886886
887887
It raises `BadMapError` if the first element is not a map.
888888
@@ -1905,7 +1905,7 @@ defmodule Kernel do
19051905
@doc """
19061906
Strictly boolean "or" operator.
19071907
1908-
If `left` is `true`, returns `true`; otherwise returns `right`.
1908+
If `left` is `true`, returns `true`, otherwise returns `right`.
19091909
19101910
Requires only the `left` operand to be a boolean since it short-circuits.
19111911
If the `left` operand is not a boolean, a `BadBooleanError` exception is
@@ -1937,7 +1937,7 @@ defmodule Kernel do
19371937
@doc """
19381938
Strictly boolean "and" operator.
19391939
1940-
If `left` is `false`, returns `false`; otherwise returns `right`.
1940+
If `left` is `false`, returns `false`, otherwise returns `right`.
19411941
19421942
Requires only the `left` operand to be a boolean since it short-circuits. If
19431943
the `left` operand is not a boolean, a `BadBooleanError` exception is raised.
@@ -2503,7 +2503,7 @@ defmodule Kernel do
25032503
end
25042504

25052505
@doc """
2506-
Returns `true` if `term` is a struct; otherwise returns `false`.
2506+
Returns `true` if `term` is a struct, otherwise returns `false`.
25072507
25082508
Allowed in guard tests.
25092509
@@ -2539,7 +2539,7 @@ defmodule Kernel do
25392539
end
25402540

25412541
@doc """
2542-
Returns `true` if `term` is a struct of `name`; otherwise returns `false`.
2542+
Returns `true` if `term` is a struct of `name`, otherwise returns `false`.
25432543
25442544
`is_struct/2` does not check that `name` exists and is a valid struct.
25452545
If you want such validations, you must pattern match on the struct
@@ -2629,7 +2629,7 @@ defmodule Kernel do
26292629
end
26302630

26312631
@doc """
2632-
Returns `true` if `term` is an exception; otherwise returns `false`.
2632+
Returns `true` if `term` is an exception, otherwise returns `false`.
26332633
26342634
Allowed in guard tests.
26352635
@@ -2667,7 +2667,7 @@ defmodule Kernel do
26672667
end
26682668

26692669
@doc """
2670-
Returns `true` if `term` is an exception of `name`; otherwise returns `false`.
2670+
Returns `true` if `term` is an exception of `name`, otherwise returns `false`.
26712671
26722672
Allowed in guard tests.
26732673
@@ -5529,7 +5529,7 @@ defmodule Kernel do
55295529
end
55305530

55315531
# Calls to Kernel functions must be fully-qualified to ensure
5532-
# reproducible builds; otherwise, this macro will generate ASTs
5532+
# reproducible builds, otherwise, this macro will generate ASTs
55335533
# with different metadata (:import, :context) depending on if
55345534
# it is the bootstrapped version or not.
55355535
Elixir.Kernel.@(impl(true))

lib/elixir/lib/list.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ defmodule List do
895895
end
896896

897897
@doc """
898-
Returns `true` if `list` starts with the given `prefix` list; otherwise returns `false`.
898+
Returns `true` if `list` starts with the given `prefix` list, otherwise returns `false`.
899899
900900
If `prefix` is an empty list, it returns `true`.
901901

lib/ex_unit/lib/ex_unit/doc_test.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ defmodule ExUnit.DocTest do
540540
"""
541541
\nIf you are planning to assert on the result of an iex> expression \
542542
which contains a value inspected as #Name<...>, please make sure \
543-
the inspected value is placed at the beginning of the expression; \
543+
the inspected value is placed at the beginning of the expression, \
544544
otherwise Elixir will treat it as a comment due to the leading sign #.\
545545
"""
546546
else

lib/ex_unit/test/ex_unit/doc_test_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ defmodule ExUnit.DocTestTest do
800800
│ └ unclosed delimiter
801801
802802
└─ test/ex_unit/doc_test_test.exs:#{line}:20
803-
If you are planning to assert on the result of an iex> expression which contains a value inspected as #Name<...>, please make sure the inspected value is placed at the beginning of the expression; otherwise Elixir will treat it as a comment due to the leading sign #.
803+
If you are planning to assert on the result of an iex> expression which contains a value inspected as #Name<...>, please make sure the inspected value is placed at the beginning of the expression, otherwise Elixir will treat it as a comment due to the leading sign #.
804804
doctest:
805805
iex> {:ok, :oops}
806806
{:ok, #Inspect<[]>}

lib/mix/lib/mix/tasks/test.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ defmodule Mix.Tasks.Test do
221221
and docs chunk
222222
223223
* `:test_paths` - list of paths containing test files. Defaults to
224-
`["test"]` if the `test` directory exists; otherwise, it defaults to `[]`.
224+
`["test"]` if the `test` directory exists, otherwise, it defaults to `[]`.
225225
It is expected that all test paths contain a `test_helper.exs` file
226226
227227
* `:test_pattern` - a pattern to load test files. Defaults to `*_test.exs`

0 commit comments

Comments
 (0)