Skip to content

Commit

Permalink
Fix typos and improve language
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz committed Jul 26, 2024
1 parent 33cc038 commit febbff3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/phoenix/endpoint/render_errors.ex
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ defmodule Phoenix.Endpoint.RenderErrors do

true ->
raise ArgumentError,
"expected :render_errors to have :formats or :view/:accept, but got: #{inspect(opts)}"
"expected :render_errors to have :formats or :view/:accepts, but got: #{inspect(opts)}"
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/phoenix/socket/pool_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule Phoenix.Socket.PoolSupervisor do

@impl true
def init({endpoint, name, partitions}) do
# TODO: Use persisent term on Elixir v1.12+
# TODO: Use persistent term on Elixir v1.12+
ref = :ets.new(name, [:public, read_concurrency: true])
:ets.insert(ref, {:partitions, partitions})
Phoenix.Config.permanent(endpoint, {:socket, name}, ref)
Expand Down
2 changes: 1 addition & 1 deletion lib/phoenix/socket/transport.ex
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ defmodule Phoenix.Socket.Transport do
* `{:reply, status, reply, state}` - continues the socket with reply
* `{:stop, reason, state}` - stops the socket
Control frames only supported when using websockets.
Control frames are only supported when using websockets.
The `options` contains an `opcode` key, this will be either `:ping` or
`:pong`.
Expand Down

0 comments on commit febbff3

Please sign in to comment.