diff --git a/lib/elixir/lib/protocol.ex b/lib/elixir/lib/protocol.ex index fba6327de7b..b2085ad2d6c 100644 --- a/lib/elixir/lib/protocol.ex +++ b/lib/elixir/lib/protocol.ex @@ -222,7 +222,8 @@ defmodule Protocol do are known up-front, typically after all Elixir code in a project is compiled, Elixir provides a feature called *protocol consolidation*. Consolidation directly links protocols to their implementations in a way that invoking a function from a - consolidated protocol is equivalent to invoking two remote functions. + consolidated protocol is equivalent to invoking two remote functions - one to + identify the correct implementation, and another to call the implementation. Protocol consolidation is applied by default to all Mix projects during compilation. This may be an issue during test. For instance, if you want to implement a protocol