aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-11-26 15:39:36 +0300
committerGitHub <noreply@github.com>2018-11-26 15:39:36 +0300
commitc9311a44e1280853632fe2472345dd04514a2f74 (patch)
tree62815ee9dc98a071685f0e0592e80419474b980b
parent56f5cd6a729280ba7639574bd49a2bf4be7f1c4b (diff)
downloadgoogle-benchmark-c9311a44e1280853632fe2472345dd04514a2f74.tar.gz
README.md: BM_Sequential(): the return type is 'void'
Used that example as a snippet, and it took a moment to notice what needed to be changed to make it compile..
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3820395..360a18d 100644
--- a/README.md
+++ b/README.md
@@ -264,7 +264,7 @@ messages of size `sizeof(v)` `range_x` times. It also outputs throughput in the
absence of multiprogramming.
```c++
-template <class Q> int BM_Sequential(benchmark::State& state) {
+template <class Q> void BM_Sequential(benchmark::State& state) {
Q q;
typename Q::value_type v;
for (auto _ : state) {