diff options
author | Abseil Team <absl-team@google.com> | 2020-02-05 16:29:37 -0500 |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-02-07 13:35:19 -0500 |
commit | 11d9834e98c158712cf257c8497eaf3ec536f755 (patch) | |
tree | 4a2bf4fe5efdb892a4cd791c2991af725f748626 /googlemock | |
parent | d02e2772750f39450eab16c3cf2ec9a609be8980 (diff) | |
download | googletest-11d9834e98c158712cf257c8497eaf3ec536f755.tar.gz googletest-11d9834e98c158712cf257c8497eaf3ec536f755.tar.bz2 googletest-11d9834e98c158712cf257c8497eaf3ec536f755.zip |
Googletest export
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 293438092
Diffstat (limited to 'googlemock')
-rw-r--r-- | googlemock/docs/cheat_sheet.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/docs/cheat_sheet.md b/googlemock/docs/cheat_sheet.md index b425e0a0..1e0541ba 100644 --- a/googlemock/docs/cheat_sheet.md +++ b/googlemock/docs/cheat_sheet.md @@ -489,7 +489,7 @@ which must be a permanent callback. | Matcher | Description | | :----------------------------------- | :------------------------------------ | | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even number. | -| `MATCHER_P(IsDivisibleBy, n, "") { *result_listener << "where the remainder is " << (arg % n); return (arg % n) == 0; }` | Defines a macher `IsDivisibleBy(n)` to match a number divisible by `n`. | +| `MATCHER_P(IsDivisibleBy, n, "") { *result_listener << "where the remainder is " << (arg % n); return (arg % n) == 0; }` | Defines a matcher `IsDivisibleBy(n)` to match a number divisible by `n`. | | `MATCHER_P2(IsBetween, a, b, std::string(negation ? "isn't" : "is") + " between " + PrintToString(a) + " and " + PrintToString(b)) { return a <= arg && arg <= b; }` | Defines a matcher `IsBetween(a, b)` to match a value in the range [`a`, `b`]. | <!-- mdformat on --> |