Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akoutmos committed Apr 20, 2020
1 parent fa41ceb commit 7a46b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Another example to show off the anonymous function and `:else` functionality cou
```elixir
plug Unplug,
if: fn conn -> conn.remote_ip == {10, 0, 0, 1} end,
do: plug MyCoolApp.MetricsExporter,
do: MyCoolApp.MetricsExporter,
else: fn conn ->
Logger.warn("Someone is trying to steal my metrics!")
conn
Expand Down
2 changes: 1 addition & 1 deletion lib/unplug/predicate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Unplug.Predicate do
"""

@doc """
The `eval/1` function
The `call/1` function
"""
@callback call(conn :: Plug.Conn.t(), opts :: any()) :: boolean()
end

0 comments on commit 7a46b75

Please sign in to comment.