Skip to content

Commit

Permalink
Merge pull request #557 from mhanberg/master
Browse files Browse the repository at this point in the history
Correctly indent code example
  • Loading branch information
yordis authored Feb 2, 2023
2 parents 8ac20f9 + c1423cc commit dfc4ea5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/tesla.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,19 @@ defmodule Tesla.Middleware do
### Examples
defmodule MyProject.InspectHeadersMiddleware do
@behaviour Tesla.Middleware
defmodule MyProject.InspectHeadersMiddleware do
@behaviour Tesla.Middleware
@impl true
def call(env, next, _options) do
IO.inspect(env.headers)
with {:ok, env} <- Tesla.run(env, next) do
@impl true
def call(env, next, _options) do
IO.inspect(env.headers)
{:ok, env}
with {:ok, env} <- Tesla.run(env, next) do
IO.inspect(env.headers)
{:ok, env}
end
end
end
end
"""

@doc """
Expand Down

0 comments on commit dfc4ea5

Please sign in to comment.