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
234234 @ callback __protocol__ ( :consolidated? ) :: boolean ( )
235235 @ callback __protocol__ ( :functions ) :: [ { atom ( ) , arity ( ) } ]
236236 @ callback __protocol__ ( :impls ) :: { :consolidated , [ module ( ) ] } | :not_consolidated
237- @ callback __protocol__ ( :module ) :: module
237+ @ callback __protocol__ ( :module ) :: module ( )
238238
239239 @ doc """
240240 A function available in all protocol definitions that returns the implementation
@@ -898,9 +898,9 @@ defmodule Protocol do
898898
899899 @ doc false
900900 @ 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 ( ) ] }
904904 Kernel . def ( __protocol__ ( :module ) , do: __MODULE__ )
905905 Kernel . def ( __protocol__ ( :functions ) , do: unquote ( :lists . sort ( @ __functions__ ) ) )
906906 Kernel . def ( __protocol__ ( :consolidated? ) , do: false )
You can’t perform that action at this time.
0 commit comments