summaryrefslogtreecommitdiffstats
path: root/googlemock/docs/CookBook.md
diff options
context:
space:
mode:
authorMarzo Sette Torres Junior <marzojr@gmail.com>2016-09-02 17:39:48 (GMT)
committerGitHub <noreply@github.com>2016-09-02 17:39:48 (GMT)
commitf700442db332033cd874fe453c1006b2a5fcd276 (patch)
tree2ee74580ca865ab82ffdf3db7951f3bbbdd3bd35 /googlemock/docs/CookBook.md
parented9d1e1ff92ce199de5ca2667a667cd0a368482a (diff)
downloadgoogletest-f700442db332033cd874fe453c1006b2a5fcd276.zip
googletest-f700442db332033cd874fe453c1006b2a5fcd276.tar.gz
googletest-f700442db332033cd874fe453c1006b2a5fcd276.tar.bz2
Clarifying languagerefs/pull/867/head
The old language might mislead someone into thinking that the access level on the base class itself was changed.
Diffstat (limited to 'googlemock/docs/CookBook.md')
-rw-r--r--googlemock/docs/CookBook.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/googlemock/docs/CookBook.md b/googlemock/docs/CookBook.md
index c52f100..5f5ea44 100644
--- a/googlemock/docs/CookBook.md
+++ b/googlemock/docs/CookBook.md
@@ -18,8 +18,9 @@ You must always put a mock method definition (`MOCK_METHOD*`) in a
`public:` section of the mock class, regardless of the method being
mocked being `public`, `protected`, or `private` in the base class.
This allows `ON_CALL` and `EXPECT_CALL` to reference the mock function
-from outside of the mock class. (Yes, C++ allows a subclass to change
-the access level of a virtual function in the base class.) Example:
+from outside of the mock class. (Yes, C++ allows a subclass to specify
+a different access level than the base class on a virtual function.)
+Example:
```
class Foo {