Skip to content

Commit

Permalink
Change Fixture to use non-const SetUp and TearDown in example (#1723)
Browse files Browse the repository at this point in the history
Const SetUp and TearDown were deprecated in #285

Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
  • Loading branch information
FantasqueX and dmah42 committed Jan 5, 2024
1 parent 07c98d5 commit a6b78ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ For Example:
```c++
class MyFixture : public benchmark::Fixture {
public:
void SetUp(const ::benchmark::State& state) {
void SetUp(::benchmark::State& state) {
}

void TearDown(const ::benchmark::State& state) {
void TearDown(::benchmark::State& state) {
}
};

Expand Down

0 comments on commit a6b78ef

Please sign in to comment.