Skip to content

Commit 610bbee

Browse files
aibaarserik-krogh
andauthored
Update docs/codeql/codeql-language-guides/using-api-graphs-in-ruby.rst
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 6891b52 commit 610bbee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/codeql/codeql-language-guides/using-api-graphs-in-ruby.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ enters the current code base. A typical example is the return value of a library
124124
125125
import codeql.ruby.ApiGraphs
126126
127-
select API::getTopLevelMember("File").getMethod("read").getParameter(1).asSource()
127+
select API::getTopLevelMember("File").getMethod("read").getReturn().asSource()
128128
129129
130130
The ``asSink()`` method is used to select dataflow nodes where a value leaves the

0 commit comments

Comments
 (0)