diff --git a/shared/yeast/src/build.rs b/shared/yeast/src/build.rs index 7136e2332f8..6c2a9d4181d 100644 --- a/shared/yeast/src/build.rs +++ b/shared/yeast/src/build.rs @@ -183,9 +183,9 @@ impl BuildCtx<'_, C> { /// /// Use when descending into a subtree — a body, expression, or statement /// list — that must not inherit any of the surrounding translation - /// context (for example an enclosing binding modifier). Accepts single - /// (`Id`), optional (`Option`), and repeated (`Vec`) captures, - /// since all of them are `IntoIterator`. + /// context (for example an enclosing binding modifier). Accepts optional + /// (`Option`) and repeated (`Vec`) captures (both `IntoIterator`); + /// for a single `Id`, wrap it in `std::iter::once(id)`. pub fn translate_reset>( &mut self, ids: impl IntoIterator, diff --git a/unified/ql/lib/codeql/unified/internal/AstExtra.qll b/unified/ql/lib/codeql/unified/internal/AstExtra.qll index ba625aad5fe..e14043dc46d 100644 --- a/unified/ql/lib/codeql/unified/internal/AstExtra.qll +++ b/unified/ql/lib/codeql/unified/internal/AstExtra.qll @@ -44,7 +44,7 @@ module Public { class Comment extends TriviaToken { // At the moment, comments are the only type trivia token we extract /** - * Gets the text inside this comment, not counting the delimeters. + * Gets the text inside this comment, not counting the delimiters. */ string getCommentText() { result = this.getValue().regexpCapture("//(.*)", 1) diff --git a/unified/ql/lib/codeql/unified/internal/Variables.qll b/unified/ql/lib/codeql/unified/internal/Variables.qll index a7e8160deb8..97629f2c57f 100644 --- a/unified/ql/lib/codeql/unified/internal/Variables.qll +++ b/unified/ql/lib/codeql/unified/internal/Variables.qll @@ -12,10 +12,10 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig 0, // $ access=x1 let x = x, // $ access=x1 // name=x2 - x > 0 else { // $ access=x2 + x > 0 { // $ access=x2 print(x) // $ access=x2 } } @@ -319,7 +319,7 @@ func t35(optional: Int?) { // name=optional1 func t36(a: Int?, b: Int?) { while let x = a, // $ access=a let y = b, // $ access=b - x < y { // $ $ access=x access=y + x < y { // $ access=x access=y print(x) // $ access=x print(y) // $ access=y }