summaryrefslogtreecommitdiffstats
path: root/googlemock/docs/cook_book.md
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2019-07-30 22:47:55 (GMT)
committerGennadiy Civil <misterg@google.com>2019-07-30 22:47:55 (GMT)
commit9311242db422dd6f24c8e764847fe5d70d0d4859 (patch)
tree46476749af3ee455671a07764be6c54b8a065a43 /googlemock/docs/cook_book.md
parent0647b90eebfbe98d7bba3aa700b65752c3695c79 (diff)
parentbf6df7eaee5cfaafe2655fab143f348eba98c9af (diff)
downloadgoogletest-9311242db422dd6f24c8e764847fe5d70d0d4859.zip
googletest-9311242db422dd6f24c8e764847fe5d70d0d4859.tar.gz
googletest-9311242db422dd6f24c8e764847fe5d70d0d4859.tar.bz2
Merge pull request #2356 from kuzkry:typos
PiperOrigin-RevId: 260786935
Diffstat (limited to 'googlemock/docs/cook_book.md')
-rw-r--r--googlemock/docs/cook_book.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/googlemock/docs/cook_book.md b/googlemock/docs/cook_book.md
index 17c2645..676560b 100644
--- a/googlemock/docs/cook_book.md
+++ b/googlemock/docs/cook_book.md
@@ -1038,7 +1038,7 @@ arguments as *one* single tuple to the predicate.
Have you noticed that a matcher is just a fancy predicate that also knows how to
describe itself? Many existing algorithms take predicates as arguments (e.g.
those defined in STL's `<algorithm>` header), and it would be a shame if gMock
-matchers are not allowed to participate.
+matchers were not allowed to participate.
Luckily, you can use a matcher where a unary predicate functor is expected by
wrapping it inside the `Matches()` function. For example,
@@ -1245,7 +1245,7 @@ what if you want to make sure the value *pointed to* by the pointer, instead of
the pointer itself, has a certain property? Well, you can use the `Pointee(m)`
matcher.
-`Pointee(m)` matches a pointer iff `m` matches the value the pointer points to.
+`Pointee(m)` matches a pointer if `m` matches the value the pointer points to.
For example:
```cpp
@@ -2603,7 +2603,7 @@ However, if the action has its own state, you may be surprised if you share the
action object. Suppose you have an action factory `IncrementCounter(init)` which
creates an action that increments and returns a counter whose initial value is
`init`, using two actions created from the same expression and using a shared
-action will exihibit different behaviors. Example:
+action will exhibit different behaviors. Example:
```cpp
EXPECT_CALL(foo, DoThis())
@@ -3548,7 +3548,7 @@ class MatcherInterface {
public:
virtual ~MatcherInterface();
- // Returns true iff the matcher matches x; also explains the match
+ // Returns true if the matcher matches x; also explains the match
// result to 'listener'.
virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
@@ -3702,10 +3702,10 @@ class CardinalityInterface {
public:
virtual ~CardinalityInterface();
- // Returns true iff call_count calls will satisfy this cardinality.
+ // Returns true if call_count calls will satisfy this cardinality.
virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
- // Returns true iff call_count calls will saturate this cardinality.
+ // Returns true if call_count calls will saturate this cardinality.
virtual bool IsSaturatedByCallCount(int call_count) const = 0;
// Describes self to an ostream.