Fix erlang code example

Shouldn't call a function "fun" in erlang code, update the erlang function naming to match the Elixir code.