-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[website] Clarify issue type
VECTOR_INVALIDATION
example with pointe…
…r assignment (#1830) Summary: This PR updates the VECTOR_INVALIDATION documentation example to include a missing line of code that explicitly assigns a pointer. The added line `int* y = elt;` clarifies the example by showing the exact pointer that is dereferenced after the vector modification. The missing line comes from the testcase file `infer/tests/codetoanalyze/cpp/pulse/vector.cpp` ## Motivation The current documentation example might be confusing for readers, as it dereferences a pointer `y` which was not explicitly assigned in the code snippet. Including the pointer assignment makes the example clearer and demonstrates the potential invalidation issue more effectively. ## Changes - Added `int* y = elt;` in the VECTOR_INVALIDATION example. - Updated across four documentation files to maintain consistency. Thank you for considering this documentation improvement. Pull Request resolved: #1830 Test Plan: Imported from GitHub, without a `Test Plan:` line. $ make doc-publish website$ yarn start Reviewed By: ngorogiannis Differential Revision: D56309428 Pulled By: skcho fbshipit-source-id: 3f2c1f30b6c4c1339735c78875fb26811c4b12c1
- Loading branch information
1 parent
2570f82
commit 731d945
Showing
6 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters