Skip to content

Commit

Permalink
コードの誤りを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
lpha-z committed Sep 19, 2024
1 parent 51384f5 commit caa8159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/cpp17/selection_statements_with_initializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (status_code c = bar(); c != SUCCESS) {
return c;
} else {
//ステータスコード C が成功だったら、何かして、処理を続行する
//ステータスコード c が成功だったら、何かして、処理を続行する
}
//この時点で c は無効
Expand Down Expand Up @@ -160,7 +160,7 @@ status_code foo() {
int n = get_value();

{
status_code C = bar(n);
status_code c = bar(n);
if (c != status_code::SUCCESS) { return c; }
}
{
Expand Down

0 comments on commit caa8159

Please # to comment.