File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ defmodule Protocol do
234
234
@ callback __protocol__ ( :consolidated? ) :: boolean ( )
235
235
@ callback __protocol__ ( :functions ) :: [ { atom ( ) , arity ( ) } ]
236
236
@ callback __protocol__ ( :impls ) :: { :consolidated , [ module ( ) ] } | :not_consolidated
237
- @ callback __protocol__ ( :module ) :: module
237
+ @ callback __protocol__ ( :module ) :: module ( )
238
238
239
239
@ doc """
240
240
A function available in all protocol definitions that returns the implementation
@@ -898,9 +898,9 @@ defmodule Protocol do
898
898
899
899
@ doc false
900
900
@ spec __protocol__ ( :module ) :: __MODULE__
901
- @ spec __protocol__ ( :functions ) :: [ { atom ( ) , non_neg_integer ( ) } ]
902
- @ spec __protocol__ ( :consolidated? ) :: boolean
903
- @ spec __protocol__ ( :impls ) :: :not_consolidated | { :consolidated , [ module ] }
901
+ @ spec __protocol__ ( :functions ) :: [ { atom ( ) , arity ( ) } ]
902
+ @ spec __protocol__ ( :consolidated? ) :: boolean ( )
903
+ @ spec __protocol__ ( :impls ) :: :not_consolidated | { :consolidated , [ module ( ) ] }
904
904
Kernel . def ( __protocol__ ( :module ) , do: __MODULE__ )
905
905
Kernel . def ( __protocol__ ( :functions ) , do: unquote ( :lists . sort ( @ __functions__ ) ) )
906
906
Kernel . def ( __protocol__ ( :consolidated? ) , do: false )
You can’t perform that action at this time.
0 commit comments