Skip to content

Commit fc33738

Browse files
committed
Finish the docstring
1 parent 60ddfaa commit fc33738

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/misra/src/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ newtype TPointerFormation =
230230
* int *third_pos = &arr[2]; // current offset is 2.
231231
* int *one_beyond_last = third_pos + 2; // current offset is 4 (which is just one beyond the last).
232232
* ```
233-
*
234-
* &
235-
*
233+
*
234+
* We want `&arr[2]` to be recognized as an offset of 2 applied to the base pointer of `arr`.
235+
*
236236
* c.f. `TAddressOfIndex` branch of `PointerFormation`.
237237
*/
238238

0 commit comments

Comments
 (0)