diff --git a/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll index 6a44b6e43cb..6061db1fdf7 100644 --- a/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll +++ b/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll @@ -5,7 +5,7 @@ private import codeql.swift.elements.expr.Expr /** * A Swift autoclosure expression, that is, a closure automatically generated * around an argument when the parameter has the `@autoclosure` attribute or - * for the rtight-hand operand of short-circuiting logical operations. For + * for the right-hand operand of short-circuiting logical operations. For * example, there is an `AutoClosureExpr` around the value `0` in: * ``` * func myFunction(_ expr: @autoclosure () -> Int) { diff --git a/swift/ql/lib/codeql/swift/elements/expr/ExplicitClosureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ExplicitClosureExpr.qll index 02403259fab..d7700f85b29 100644 --- a/swift/ql/lib/codeql/swift/elements/expr/ExplicitClosureExpr.qll +++ b/swift/ql/lib/codeql/swift/elements/expr/ExplicitClosureExpr.qll @@ -3,6 +3,6 @@ private import codeql.swift.generated.expr.ExplicitClosureExpr /** * A Swift explicit closure expr, that is, a closure written using * `{ ... -> ... in ... }` syntax rather than automatically generated by the - * compiler . + * compiler. */ class ExplicitClosureExpr extends Generated::ExplicitClosureExpr { }