Skip to content

Commit d438d9a

Browse files
ExUnit: define setup callback as private function (#12129)
It uses `def clean_up_tmp_directory` in the docs when defining the setup callback, giving the impression that this function has to be public, when it is not the case. This commits changes it to `defp`.
1 parent 1243b29 commit d438d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ex_unit/lib/ex_unit/callbacks.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ defmodule ExUnit.Callbacks do
193193
194194
## Examples
195195
196-
def clean_up_tmp_directory(context) do
196+
defp clean_up_tmp_directory(context) do
197197
# perform setup
198198
:ok
199199
end
@@ -288,7 +288,7 @@ defmodule ExUnit.Callbacks do
288288
# One-arity function name
289289
setup_all :clean_up_tmp_directory
290290
291-
def clean_up_tmp_directory(_context) do
291+
defp clean_up_tmp_directory(_context) do
292292
# perform setup
293293
:ok
294294
end

0 commit comments

Comments
 (0)