From 4b7ddf685f39c4e7e55e6e306d1c717c4bdfca67 Mon Sep 17 00:00:00 2001 From: Yu Feng Date: Mon, 12 Oct 2020 14:50:06 -0700 Subject: [PATCH] Potential typo. --- docs/cpp/guides/status.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cpp/guides/status.md b/docs/cpp/guides/status.md index c4848a4..05f61a9 100644 --- a/docs/cpp/guides/status.md +++ b/docs/cpp/guides/status.md @@ -187,9 +187,9 @@ performed via `operator*` or `operator->`, after a call to `ok()` confirms that the `absl::StatusOr` holds an object of type `T`: ```c++ -absl::StatusOr i = GetCount(); +absl::StatusOr foo = GetCount(); if (foo.ok()) { - updated_total += *i + updated_total += *foo; } ```