From 7051240917ad0404bbf21ba194a91466a5a7e18b Mon Sep 17 00:00:00 2001 From: mlimber Date: Tue, 22 Sep 2020 10:40:18 -0400 Subject: [PATCH] Fix code error The code is incomplete and doesn't compile. Instead of making a local variable as in `CallFoo4()`, which would make 3 and 4 almost identical, I put the call inline in the `if`-statement to show a little variation. --- _posts/2020-09-11-totw-76.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2020-09-11-totw-76.md b/_posts/2020-09-11-totw-76.md index d0b05225..50d78ec1 100644 --- a/_posts/2020-09-11-totw-76.md +++ b/_posts/2020-09-11-totw-76.md @@ -43,7 +43,7 @@ void CallFoo2() { } void CallFoo3() { - if (!status.ok()) std::abort(); + if (!Foo().ok()) std::abort(); } void CallFoo4() {