Skip to content

Commit 6157fe2

Browse files
committed
Update spec
1 parent 0d1b0be commit 6157fe2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intercepts/intercept.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
%% functions.
5555
%%
5656
%% E.g. `[{{update_perform,2}, sleep_update_perform}]'
57-
-spec add(module(), module(), mapping()) -> ok.
57+
-spec add(module(), module(), mapping(), string()) -> ok.
5858
add(Target, Intercept, Mapping, OutDir) ->
5959
Original = ?ORIGINAL(Target),
6060
TargetAC = get_abstract_code(Target),
@@ -66,6 +66,7 @@ add(Target, Intercept, Mapping, OutDir) ->
6666
ok = compile_and_load(Original, OrigAC, OutDir),
6767
ok = compile_and_load(Target, ProxyAC, OutDir).
6868

69+
-spec add(module(), module(), mapping()) -> ok.
6970
add(Target, Intercept, Mapping) ->
7071
add(Target, Intercept, Mapping, undefined).
7172

0 commit comments

Comments
 (0)