mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 05:04:41 +03:00
[NR.6] trivial: s/goto_exit/goto exit/ (#2287)
The example intended:
goto exit;
However, it was mistakenly written as:
goto_exit;
This commit is contained in:
@@ -20889,7 +20889,7 @@ This technique is a pre-exception technique for RAII-like resource and error han
|
|||||||
// ...
|
// ...
|
||||||
int* p = (int*) malloc(n);
|
int* p = (int*) malloc(n);
|
||||||
// ...
|
// ...
|
||||||
if (some_error) goto_exit;
|
if (some_error) goto exit;
|
||||||
// ...
|
// ...
|
||||||
exit:
|
exit:
|
||||||
free(p);
|
free(p);
|
||||||
|
|||||||
Reference in New Issue
Block a user