From dd73399238185613e6b3752dcef1db303ec50682 Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Tue, 20 Jan 2026 09:57:27 +0100 Subject: [PATCH] Rust: Tweak a comment Co-authored-by: Tom Hvitved --- .../lib/codeql/rust/internal/typeinference/TypeInference.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll b/rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll index 8759058d84c..be102aca76d 100644 --- a/rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll +++ b/rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll @@ -3830,8 +3830,8 @@ private Type invokedClosureFnTypeAt(InvokedClosureExpr ce, TypePath path) { * * We model closures as `dyn Fn` trait object types. A closure might implement * only `Fn`, `FnMut`, or `FnOnce`. But since `Fn` is a subtrait of the others, - * giving closures the type `dyn Fn` works well in practice—even if not entirely - * accurate. + * giving closures the type `dyn Fn` works well in practice -- even if not + * entirely accurate. */ private DynTraitType closureRootType() { result = TDynTraitType(any(FnTrait t)) // always exists because of the mention in `builtins/mentions.rs`