mirror of
https://github.com/github/codeql.git
synced 2025-12-28 14:46:33 +01:00
add extra clarifications in the comments
This commit is contained in:
@@ -226,7 +226,7 @@ Here are a few examples of infinite predicates:
|
||||
Compilation errors:
|
||||
ERROR: "i" is not bound to a value.
|
||||
ERROR: "result" is not bound to a value.
|
||||
ERROR: expression is not bound to a value.
|
||||
ERROR: expression "i * 4" is not bound to a value.
|
||||
*/
|
||||
int multiplyBy4(int i) {
|
||||
result = i * 4
|
||||
@@ -235,7 +235,7 @@ Here are a few examples of infinite predicates:
|
||||
/*
|
||||
Compilation errors:
|
||||
ERROR: "str" is not bound to a value.
|
||||
ERROR: expression is not bound to a value.
|
||||
ERROR: expression "str.length()" is not bound to a value.
|
||||
*/
|
||||
predicate shortString(string str) {
|
||||
str.length() < 10
|
||||
|
||||
Reference in New Issue
Block a user