mirror of
https://github.com/google/googletest.git
synced 2025-01-14 08:27:56 +08:00
Googletest export
Remove badly formatted suggestion in gmock cheat sheet. PiperOrigin-RevId: 277060475
This commit is contained in:
parent
a8b1a66cfd
commit
a1f71dd56d
@ -614,19 +614,6 @@ composite action - trying to do so will result in a run-time error.
|
|||||||
|
|
||||||
#### Defining Actions
|
#### Defining Actions
|
||||||
|
|
||||||
<table border="1" cellspacing="0" cellpadding="1">
|
|
||||||
<tr>
|
|
||||||
<td>`struct SumAction {` <br>
|
|
||||||
 `template <typename T>` <br>
|
|
||||||
 `T operator()(T x, Ty) { return x + y; }` <br>
|
|
||||||
`};`
|
|
||||||
</td>
|
|
||||||
<td> Defines a generic functor that can be used as an action summing its
|
|
||||||
arguments. </td> </tr>
|
|
||||||
<tr>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- mdformat off(no multiline tables) -->
|
<!-- mdformat off(no multiline tables) -->
|
||||||
| | |
|
| | |
|
||||||
| :--------------------------------- | :-------------------------------------- |
|
| :--------------------------------- | :-------------------------------------- |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user