Skip to content

Commit d40a490

Browse files
authored
[NR.6] trivial: s/goto_exit/goto exit/ (#2287)
The example intended: goto exit; However, it was mistakenly written as: goto_exit;
1 parent 2722375 commit d40a490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20889,7 +20889,7 @@ This technique is a pre-exception technique for RAII-like resource and error han
2088920889
// ...
2089020890
int* p = (int*) malloc(n);
2089120891
// ...
20892-
if (some_error) goto_exit;
20892+
if (some_error) goto exit;
2089320893
// ...
2089420894
exit:
2089520895
free(p);

0 commit comments

Comments
 (0)