Update capture usage

The compilation failed on Elixir 0.11.2-dev because the syntax of captures changed.