Skip to content

Commit 1084d7f

Browse files
committed
Swift: Correct a couple more cases.
1 parent 2fd8b87 commit 1084d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/codeql/codeql-language-guides/analyzing-data-flow-in-swift.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ We can vary the source, for example, making the source the parameter of a functi
125125
import swift
126126
import codeql.swift.dataflow.DataFlow
127127
128-
from CallExpr call, MethodDecl method, ParamDecl sourceParam, Expr sinkExpr
128+
from CallExpr call, Method method, ParamDecl sourceParam, Expr sinkExpr
129129
where
130130
call.getStaticTarget() = method and
131131
method.hasQualifiedName("String", "init(format:_:)") and
@@ -140,7 +140,7 @@ The following example finds calls to ``String.init(format:_:)`` where the format
140140
import swift
141141
import codeql.swift.dataflow.DataFlow
142142
143-
from CallExpr call, MethodDecl method, Expr sinkExpr
143+
from CallExpr call, Method method, Expr sinkExpr
144144
where
145145
call.getStaticTarget() = method and
146146
method.hasQualifiedName("String", "init(format:_:)") and

0 commit comments

Comments
 (0)