diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index b4e4c215..25697701 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -1227,10 +1227,10 @@ class Environment : public ::testing::Environment { virtual ~Environment() {} // Override this to define how to set up the environment. - virtual void SetUp() {} + void SetUp() override {} // Override this to define how to tear down the environment. - virtual void TearDown() {} + void TearDown() override {} }; ```