Skip to content

Commit e09a5e8

Browse files
committed
Ruby: clarify what getAnElement() does
1 parent 588b31d commit e09a5e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ module API {
276276
/** Gets a node representing the instance field of the given `name`, which must include the `@` character. */
277277
Node getField(string name) { result = this.getContent(DataFlowPrivate::TFieldContent(name)) }
278278

279-
/** Gets a node representing an element of this collection. */
279+
/** Gets a node representing an element of this collection (known or unknown). */
280280
Node getAnElement() {
281281
result = this.getContents(any(DataFlow::ContentSet set | set.isAnyElement()))
282282
}

0 commit comments

Comments
 (0)