mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-16 20:37:03 +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);
|
||||
// ...
|
||||
if (some_error) goto_exit;
|
||||
if (some_error) goto exit;
|
||||
// ...
|
||||
exit:
|
||||
free(p);
|
||||
|
||||
Reference in New Issue
Block a user