Skip to content

Commit

Permalink
revert to an MFA
Browse files Browse the repository at this point in the history
  • Loading branch information
franknfjr committed May 20, 2024
1 parent 5fd8ddf commit f11e531
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/plug/debugger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule Plug.Debugger do
## Custom Banners
You may pass a MFA (`{module, function, args}`) to be invoked when an
You may pass an MFA (`{module, function, args}`) to be invoked when an
error is rendered which provides a custom banner at the top of the
debugger page. The function receives the following arguments, with the
passed `args` concatenated at the end:
Expand Down Expand Up @@ -496,7 +496,7 @@ defmodule Plug.Debugger do

{:ok, other} ->
raise ArgumentError,
"expected :banner to be a MFA ({module, func, args}), got: #{inspect(other)}"
"expected :banner to be an MFA ({module, func, args}), got: #{inspect(other)}"

:error ->
nil
Expand Down
4 changes: 2 additions & 2 deletions lib/plug/session/cookie.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ defmodule Plug.Session.COOKIE do
* `:encryption_salt` - a salt used with `conn.secret_key_base` to generate
a key for encrypting/decrypting a cookie, can be either a binary or
a MFA returning a binary;
an MFA returning a binary;
* `:signing_salt` - a salt used with `conn.secret_key_base` to generate a
key for signing/verifying a cookie, can be either a binary or
a MFA returning a binary;
an MFA returning a binary;
* `:key_iterations` - option passed to `Plug.Crypto.KeyGenerator`
when generating the encryption and signing keys. Defaults to 1000;
Expand Down
2 changes: 1 addition & 1 deletion lib/plug/static.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Plug.Static do
atom representing the application name (where assets will
be served from `priv/static`), a tuple containing the
application name and the directory to serve assets from (besides
`priv/static`), or a MFA tuple.
`priv/static`), or an MFA tuple.
The preferred form is to use `:from` with an atom or tuple, since
it will make your application independent from the starting directory.
Expand Down

0 comments on commit f11e531

Please sign in to comment.