Skip to content

Commit f12fa52

Browse files
committed
Python: Update inline example for TypeTracker usage
1 parent 189c94f commit f12fa52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/experimental/dataflow/TypeTracker.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private newtype TTypeTracker = MkTypeTracker(Boolean hasCall, OptionalAttributeN
144144
* It is recommended that all uses of this type are written in the following form,
145145
* for tracking some type `myType`:
146146
* ```
147-
* Node myType(DataFlow::TypeTracker t) {
147+
* DataFlow::Node myType(DataFlow::TypeTracker t) {
148148
* t.start() and
149149
* result = < source of myType >
150150
* or
@@ -153,7 +153,7 @@ private newtype TTypeTracker = MkTypeTracker(Boolean hasCall, OptionalAttributeN
153153
* )
154154
* }
155155
*
156-
* DataFlow::SourceNode myType() { result = myType(DataFlow::TypeTracker::end()) }
156+
* DataFlow::Node myType() { result = myType(DataFlow::TypeTracker::end()) }
157157
* ```
158158
*
159159
* Instead of `result = myType(t2).track(t2, t)`, you can also use the equivalent

0 commit comments

Comments
 (0)