Skip to content

Commit

Permalink
C++: Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
calumgrant committed Dec 20, 2024
1 parent 7abe700 commit 3193fe8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ UNKNOWN_TYPE test_error_value() {

void* test_error_pointer() {
UNKNOWN_TYPE x;
return &x; // GOOD: Don't know what &x means
return &x; // BAD [FALSE NEGATIVE]
}

int* test_error_pointer_member() {
UNKNOWN_TYPE x;
return &x.y; // GOOD: Don't know what x.y means
return &x.y; // BAD [FALSE NEGATIVE]
}

0 comments on commit 3193fe8

Please sign in to comment.