Skip to content

Commit 8b8ef3f

Browse files
Abseil Teamcopybara-github
authored andcommitted
Clarify that the return value of InvokeArgument is not the return value of the action.
PiperOrigin-RevId: 757918204 Change-Id: I3f3544ca602a3863c3bae67b8fb4c57e692f3373
1 parent 90a4152 commit 8b8ef3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ functor, or lambda.
4848
| `InvokeWithoutArgs(object_pointer, &class::method)` | Invoke the method on the object, which takes no arguments. |
4949
| `InvokeArgument<N>(arg1, arg2, ..., argk)` | Invoke the mock function's `N`-th (0-based) argument, which must be a function or a functor, with the `k` arguments. |
5050

51-
The return value of the invoked function is used as the return value of the
52-
action.
51+
The return value of the invoked function (except `InvokeArgument`) is used as
52+
the return value of the action.
5353

5454
When defining a callable to be used with `Invoke*()`, you can declare any unused
5555
parameters as `Unused`:

0 commit comments

Comments
 (0)