Skip to content

Commit f5f1c06

Browse files
vsyrovatJosé Valim
authored andcommitted
Add @impl to callbacks in examples (#1313)
1 parent 41a164f commit f5f1c06

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎getting-started/mix-otp/genserver.markdown‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ def handle_info({:DOWN, ref, :process, _pid, _reason},{names, refs}) do
305305
{:noreply,{names, refs}}
306306
end
307307

308+
@impltrue
308309
defhandle_info(_msg, state) do
309310
{:noreply, state}
310311
end

‎getting-started/mix-otp/supervisor-and-application.markdown‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ defmodule KV.Supervisor do
4141
Supervisor.start_link(__MODULE__, :ok, opts)
4242
end
4343

44+
@impltrue
4445
definit(:ok) do
4546
children = [
4647
KV.Registry

0 commit comments

Comments
(0)