From 138cfb7b73e5acf2791cedb7288c5509e554b968 Mon Sep 17 00:00:00 2001 From: Marco Molteni Date: Sat, 15 Apr 2017 18:37:14 +0200 Subject: [PATCH] Fix errors in capture/5, capture/6 documentation --- src/meck.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meck.erl b/src/meck.erl index adb09e86..7206f7cb 100644 --- a/src/meck.erl +++ b/src/meck.erl @@ -643,7 +643,7 @@ is(MatcherImpl) -> %% %% If an occurrence of a function call irrespective of the calling process needs %% to be captured then `_' might be passed as `OptCallerPid', but it is better -%% to use {@link capture/3} instead. +%% to use {@link capture/5} instead. -spec capture(Occur, Mod, Func, OptArgsSpec, ArgNum, OptCallerPid) -> ArgValue when Occur :: first | last | pos_integer(), Mod :: atom(), @@ -667,7 +667,7 @@ capture(Occur, Mod, Func, OptArgsSpec, ArgNum, OptCallerPid) -> %% retrieve the argument value passed when the function was called the first %% or the last time respectively. %% -%% @equiv capture(Occur, '_', Mod, Func, OptArgsSpec, ArgNum) +%% @equiv capture(Occur, Mod, Func, OptArgsSpec, ArgNum, '_') -spec capture(Occur, Mod, Func, OptArgsSpec, ArgNum) -> ArgValue when Occur :: first | last | pos_integer(), Mod::atom(),