Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Nov 12, 2023
1 parent 1e3f54e commit 4a1f7bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ defmodule PortPool do
@doc ~S"""
Executes a given command against a port kept by the pool.
First we start the pool of ports:
First we start a pool of ports:
iex> child = {NimblePool, worker: {PortPool, :cat}, name: PortPool}
iex> Supervisor.start_link([child], strategy: :one_for_one)
Now we can run commands against the ports of the pool:
Now we can run commands against the ports in the pool:
iex> PortPool.command(PortPool, "hello\n")
"hello\n"
Expand Down Expand Up @@ -128,7 +128,7 @@ defmodule HTTP1Pool do
child = {NimblePool, worker: {HTTP1Pool, {:https, "elixir-lang.org", 443}}, name: HTTP1Pool}
Supervisor.start_link([child], strategy: :one_for_one)
Then we can use the connections of the pool:
Then we can use the connections in the pool:
iex> HTTP1Pool.get(HTTP1Pool, "/")
{:ok, %{status: 200, ...}}
Expand Down

0 comments on commit 4a1f7bd

Please sign in to comment.