fix typo in README (#844)

This commit is contained in:
Xinye Tao 2019-07-30 14:03:15 +08:00 committed by Roman Lebedev
parent 66482d538d
commit 140db8a229

View file

@ -1088,7 +1088,7 @@ static void BM_test(benchmark::State& state) {
state.SkipWithError("Resource is not good!"); state.SkipWithError("Resource is not good!");
// KeepRunning() loop will not be entered. // KeepRunning() loop will not be entered.
} }
for (state.KeepRunning()) { while (state.KeepRunning()) {
auto data = resource.read_data(); auto data = resource.read_data();
if (!resource.good()) { if (!resource.good()) {
state.SkipWithError("Failed to read data!"); state.SkipWithError("Failed to read data!");