Skip to content

Commit

Permalink
docs: fix typos again (#706)
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng authored Aug 28, 2024
1 parent 1dc2c7e commit 7e5bdf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tesla/adapter/gun.ex
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ if Code.ensure_loaded?(:gun) do
defp maybe_add_transport(%URI{scheme: "https"}, opts), do: Map.put(opts, :transport, :tls)
defp maybe_add_transport(_, opts), do: opts

# Support for gun master branch where transport_opts, were splitted to tls_opts and tcp_opts
# Support for gun master branch where transport_opts, were split to tls_opts and tcp_opts
# https://github.com/ninenines/gun/blob/491ddf58c0e14824a741852fdc522b390b306ae2/doc/src/manual/gun.asciidoc#changelog
# TODO: remove after update to gun 2.0
defp fetch_tls_opts(%{tls_opts: tls_opts}) when is_list(tls_opts), do: tls_opts
Expand Down
4 changes: 2 additions & 2 deletions test/tesla/middleware/logger_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ defmodule Tesla.Middleware.LoggerTest do
assert is_list(Formatter.compile(nil))
end

test "compile with funtion" do
test "compile with function" do
assert Formatter.compile(&CompileMod.format/3) == (&CompileMod.format/3)
end

Expand Down Expand Up @@ -281,7 +281,7 @@ defmodule Tesla.Middleware.LoggerTest do
"GET /get page=1&sort=desc&status%5B%5D=a&status%5B%5D=b&status%5B%5D=c&user%5Bname%5D=Jon&user%5Bage%5D=20 -> 201 | 200.000"
end

test "format with funtion" do
test "format with function" do
assert Formatter.format(nil, nil, nil, &CompileMod.format/3) == "message"
end

Expand Down

0 comments on commit 7e5bdf0

Please sign in to comment.