diff --git a/lib/finch/http1/pool_metrics.ex b/lib/finch/http1/pool_metrics.ex index fb7d552..3fb44c4 100644 --- a/lib/finch/http1/pool_metrics.ex +++ b/lib/finch/http1/pool_metrics.ex @@ -6,7 +6,7 @@ defmodule Finch.HTTP1.PoolMetrics do * `:pool_index` - Index of the pool * `:pool_size` - Total number of connections of the pool - * `:available_connections` - Number of avaialable connections + * `:available_connections` - Number of available connections * `:in_use_connections` - Number of connections currently in use Caveats: diff --git a/lib/finch/http2/pool.ex b/lib/finch/http2/pool.ex index 604a01d..ae02671 100644 --- a/lib/finch/http2/pool.ex +++ b/lib/finch/http2/pool.ex @@ -450,7 +450,7 @@ defmodule Finch.HTTP2.Pool do {:keep_state, data} end - # If we're in a read only state than respond with an error immediately + # If we're in a read only state then respond with an error immediately def connected_read_only({:call, from}, {:request, _, _, _}, _) do {:keep_state_and_data, {:reply, from, {:error, Error.exception(:read_only)}}} end diff --git a/lib/finch/pool_manager.ex b/lib/finch/pool_manager.ex index a59f00c..8ed29a9 100644 --- a/lib/finch/pool_manager.ex +++ b/lib/finch/pool_manager.ex @@ -122,7 +122,7 @@ defmodule Finch.PoolManager do defp maybe_drop_tls_options(config, _), do: config - # Hostname is required when the address is not a url (binary) so we need to specify + # Hostname is required when the address is not a URL (binary) so we need to specify # a default value in case the configuration does not specify one. defp maybe_add_hostname(config, {_scheme, {:local, _path}, _port} = _shp) when is_map(config) do conn_opts = diff --git a/test/support/finch_case.ex b/test/support/finch_case.ex index d6ba2be..380ec3e 100644 --- a/test/support/finch_case.ex +++ b/test/support/finch_case.ex @@ -18,6 +18,6 @@ defmodule FinchCase do {:ok, bypass ++ [finch_name: context.test]} end - @doc "Returns the url for a Bypass instance" + @doc "Returns the URL for a Bypass instance" def endpoint(%{port: port}, path \\ "/"), do: "http://localhost:#{port}#{path}" end