summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@dashbit.co>2021-04-01 12:11:14 +0200
committerGitHub <noreply@github.com>2021-04-01 12:11:14 +0200
commitdeb861b5fbcefbdf963cc8255c236d6a88780719 (patch)
treec66cfa6acc52cbaf1d5d3b04ce34a779a4eeebf9
parentcddb27677cb5db7fad992b9d179da1a4ec32a3db (diff)
downloadelixir-jv-default-inspect-fun.tar.gz
Update lib/elixir/lib/inspect/algebra.exjv-default-inspect-fun
Co-authored-by: Fernando Tapia Rico <fertapric@gmail.com>
-rw-r--r--lib/elixir/lib/inspect/algebra.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/elixir/lib/inspect/algebra.ex b/lib/elixir/lib/inspect/algebra.ex
index c6f495f8f..2253a6772 100644
--- a/lib/elixir/lib/inspect/algebra.ex
+++ b/lib/elixir/lib/inspect/algebra.ex
@@ -144,11 +144,12 @@ defmodule Inspect.Opts do
Inspect.Opts.default_inspect_fun(fn
%{address: _} = map, opts ->
- fun.(%{map | address: "[REDACTED]"}, opts)
+ previous_fun.(%{map | address: "[REDACTED]"}, opts)
value, opts ->
- fun.(map, opts)
+ previous_fun.(value, opts)
end)
+
"""
@doc since: "1.13.0"
@spec default_inspect_fun((term, t -> Inspect.Algebra.t())) :: :ok