C++: Update example in QLDoc.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-07-24 12:13:31 +02:00
parent 9cb09d6e9a
commit 9108982b07

View File

@@ -7,7 +7,7 @@
* 1. char* base = (char*)malloc(size);
* 2. char* end = base + size;
* 3. for(int *p = base; p <= end; p++) {
* 4. use(*p);
* 4. use(*p); // BUG: Should have been bounded by `p < end`.
* 5. }
* ```
* this file identifies the flow from `new int[size]` to `base + size`.