Skip to content

Commit

Permalink
Fix typos (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenlaid authored Dec 16, 2024
1 parent baac5f6 commit 66b0555
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/bandit/phoenix_adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Bandit.PhoenixAdapter do
This adapter supports the standard Phoenix structure for endpoint configuration. Top-level keys for
`:http` and `:https` are supported, and configuration values within each of those are interpreted
as raw Bandit configuration as specified by `t:Bandit.options/0`. Bandit's confguration supports
as raw Bandit configuration as specified by `t:Bandit.options/0`. Bandit's configuration supports
all values used in a standard out-of-the-box Phoenix application, so if you haven't made any
substantial changes to your endpoint configuration things should 'just work' for you.
Expand Down
2 changes: 1 addition & 1 deletion lib/bandit/telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ defmodule Bandit.Telemetry do
def span_exception(span, :error, reason, stacktrace) when is_exception(reason) do
metadata =
Map.merge(span.start_metadata, %{
# Using :exit for backwards-compatiblity with Bandit =< 1.5.7
# Using :exit for backwards-compatibility with Bandit =< 1.5.7
kind: :exit,
exception: reason,
stacktrace: stacktrace
Expand Down
4 changes: 2 additions & 2 deletions test/bandit/http1/request_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ defmodule HTTP1RequestTest do
:nope
end

test "silently accepts EXIT messages from normally terminating spwaned processes", context do
test "silently accepts EXIT messages from normally terminating spawned processes", context do
errors =
capture_log(fn ->
Req.get!(context.req, url: "/spawn_child")
Expand All @@ -2047,7 +2047,7 @@ defmodule HTTP1RequestTest do
end
end

test "does not do anything special with EXIT messages from abnormally terminating spwaned processes",
test "does not do anything special with EXIT messages from abnormally terminating spawned processes",
context do
context = http_server(context, http_1_options: [log_unknown_messages: true])

Expand Down
2 changes: 1 addition & 1 deletion test/bandit/http2/plug_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ defmodule HTTP2PlugTest do
send_resp(conn, 200, conn |> get_peer_data() |> inspect())
end

test "silently accepts EXIT messages from normally terminating spwaned processes", context do
test "silently accepts EXIT messages from normally terminating spawned processes", context do
errors =
capture_log(fn ->
Req.get!(context.req, url: "/spawn_child")
Expand Down

0 comments on commit 66b0555

Please sign in to comment.