Fix documentation for expected
In 3b0ce70, the bool() operator for expected was removed. Update the
documentation example to reflect the current interface.
Test: lunch aosp-bramble_userdebug; m
Change-Id: I38d406b6e76fec1200cc0dec2d65bfbaca2dbefe
diff --git a/include/android-base/expected.h b/include/android-base/expected.h
index 11cf1ac..3b9d45f 100644
--- a/include/android-base/expected.h
+++ b/include/android-base/expected.h
@@ -37,7 +37,7 @@
//
// void test() {
// auto q = safe_divide(10, 0);
-// if (q) { printf("%f\n", q.value()); }
+// if (q.ok()) { printf("%f\n", q.value()); }
// else { printf("%s\n", q.error().c_str()); }
// }
//