Fix erlang code example

Shouldn't call a function "fun" in erlang code, update the erlang function naming to match the Elixir code.
Merge pull request #178 from RJ/patch-1

Fix erlang code example 'fun'