================
@@ -317,9 +317,9 @@ example:
 
 .. code:: cpp
 
-   void f(std::vector<absl::StatusOr<int>> sors) {
-     if (sors[0].ok()) {
-       use(*sors[0]); // unsafe: it is unclear whether the status of `sors[0]` 
is ok.
+   void f(std::vector<absl::StatusOr<int>> xs) {
----------------
fmayer wrote:

I think you could go either way. `xs` signifies there are multiple. But it 
doesn't matter.

https://github.com/llvm/llvm-project/pull/176498
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to