Skip to content

Commit 4bc287e

Browse files
authored
Merge pull request github#4933 from madneal/fix-for-predicates
Approved by shati-patel
2 parents 59abcd6 + ee3ffa0 commit 4bc287e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/codeql/ql-language-reference/predicates.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,16 @@ Here are a few examples of infinite predicates:
226226
Compilation errors:
227227
ERROR: "i" is not bound to a value.
228228
ERROR: "result" is not bound to a value.
229+
ERROR: expression "i * 4" is not bound to a value.
229230
*/
230231
int multiplyBy4(int i) {
231232
result = i * 4
232233
}
233234
234235
/*
235-
Compilation error:
236+
Compilation errors:
236237
ERROR: "str" is not bound to a value.
238+
ERROR: expression "str.length()" is not bound to a value.
237239
*/
238240
predicate shortString(string str) {
239241
str.length() < 10

0 commit comments

Comments
 (0)