Skip to content

Commit 0edfafe

Browse files
committed
Shared: Correct and clarify doc for SemBound.getExpr.
1 parent 50ad459 commit 0edfafe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,11 @@ signature module BoundSig<LocationSig Location, Semantic Sem, DeltaSig D> {
393393
Location getLocation();
394394

395395
/**
396-
* Gets an expression that equals this bound plus `delta`. For example given
397-
* the expression `x = foo() + 1` the variable `x` has a bound with
398-
* expression `call to foo()` and delta `-1`.
396+
* Gets an expression that equals this bound plus `delta`.
399397
*
400-
* For the zero-bound this gets integer constants equal to `delta`, and for
401-
* other bounds this gets expressions equal to the bound while `delta = 0`.
398+
* For the zero-bound this gets integer constants equal to `delta`, for any
399+
* value `delta`. For other bounds this gets expressions equal to the bound
400+
* and `delta = 0`.
402401
*/
403402
Sem::Expr getExpr(D::Delta delta);
404403
}

0 commit comments

Comments
 (0)