Apply suggestions from code review

Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com>
This commit is contained in:
Simon Friis Vindum
2024-12-12 08:58:35 +01:00
committed by GitHub
parent 94b037fad1
commit 59f3f1f1e9
2 changed files with 2 additions and 2 deletions

View File

@@ -342,7 +342,7 @@ module Ssa {
* An SSA definition inserted at a call that may update the value of a captured
* variable. For example, in
*
* ```rb
* ```rust
* fn capture_mut() {
* let mut y = 0;
* (0..5).for_each(|| {

View File

@@ -769,7 +769,7 @@ final class SingletonContentSet extends ContentSet, TSingletonContentSet {
class LambdaCallKind = Unit;
/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */
/** Holds if `creation` is an expression that creates a lambda of kind `kind`. */
private predicate lambdaCreationExpr(Expr creation, LambdaCallKind kind) {
creation instanceof ClosureExpr and exists(kind)
}