Skip to content

Commit 71c47db

Browse files
eksperimentaljosevalim
authored andcommitted
Add missing variable names in function definitions (#6194)
1 parent dfff245 commit 71c47db

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

lib/elixir/lib/exception.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ defmodule Exception do
170170
"""
171171
@spec blame(:error, any, stacktrace) :: {t, stacktrace}
172172
@spec blame(non_error_kind, payload, stacktrace) :: {payload, stacktrace} when payload: var
173+
def blame(kind, error, stacktrace)
174+
173175
def blame(:error, error, stacktrace) do
174176
case normalize(:error, error, stacktrace) do
175177
%{__struct__: FunctionClauseError} = struct ->

lib/elixir/lib/list.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ defmodule List do
600600
@spec starts_with?(list, list) :: boolean
601601
@spec starts_with?(list, []) :: true
602602
@spec starts_with?([], nonempty_list) :: false
603+
def starts_with?(list, prefix)
604+
603605
def starts_with?([head | tail], [head | prefix_tail]),
604606
do: starts_with?(tail, prefix_tail);
605607
def starts_with?(list, []) when is_list(list),

lib/elixir/lib/map_set.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ defmodule MapSet do
347347
348348
"""
349349
@spec union(t(val1), t(val2)) :: t(val1 | val2) when val1: value, val2: value
350+
def union(map_set1, map_set2)
351+
350352
def union(%MapSet{map: map1, version: version} = map_set, %MapSet{map: map2, version: version}) do
351353
%{map_set | map: Map.merge(map1, map2)}
352354
end

lib/mix/lib/mix/tasks/archive.install.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ defmodule Mix.Tasks.Archive.Install do
6262
end
6363

6464
# Callbacks
65-
66-
def check_install_spec({local_or_url, path_or_url}, _opts) when
65+
def check_install_spec({local_or_url, path_or_url} = _install_spec, _opts) when
6766
local_or_url in [:local, :url] do
6867
if Path.extname(path_or_url) == ".ez" do
6968
:ok

0 commit comments

Comments
 (0)