Skip to content

Commit ebeb027

Browse files
committed
Use american spelling
1 parent 4dab672 commit ebeb027

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

go/ql/lib/semmle/go/controlflow/ControlFlowGraphImpl.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ module CfgImpl {
431431
predicate preOrderExpr(Ast::Expr e) {
432432
// The call of a `defer` statement is not invoked at the statement
433433
// itself; its callee expression and arguments are evaluated in place,
434-
// but the call is only invoked later, at function exit (modelled by the
434+
// but the call is only invoked later, at function exit (modeled by the
435435
// `defer-invoke` node and `additionalSuccessor`). Marking it as
436436
// pre-order means no in-order "invocation" node (and hence no inline
437437
// exceptional-exit edge) is created at the `defer` statement.
@@ -749,7 +749,7 @@ module CfgImpl {
749749
// A `break` in a communication clause body terminates the enclosing
750750
// `select` statement, continuing after it. This mirrors the shared
751751
// library's handling of `break` in a `switch` case body, but `select` is
752-
// modelled language-specifically (it is not a `Switch`), so the break
752+
// modeled language-specifically (it is not a `Switch`), so the break
753753
// must be caught here. The break completion bubbles up the AST until it
754754
// reaches a top-level statement of the comm clause body, at which point
755755
// flow resumes after the `select`. An unlabeled `break` targets the
@@ -1283,7 +1283,7 @@ module CfgImpl {
12831283
* Slice expression: base -> implicit-deref? -> low? -> high? -> max? -> In(sliceExpr).
12841284
*
12851285
* Missing (implicit) bounds have no control-flow node of their own; the
1286-
* implicit lower bound of `0` is modelled as a constant on the
1286+
* implicit lower bound of `0` is modeled as a constant on the
12871287
* `SliceInstruction` rather than as a separate node.
12881288
*/
12891289
private predicate sliceExprStep(PreControlFlowNode n1, PreControlFlowNode n2) {
@@ -1387,7 +1387,7 @@ module CfgImpl {
13871387
)
13881388
or
13891389
// Positional array/slice elements have an implicit index that is
1390-
// modelled on the `lit-init` instruction itself (see
1390+
// modeled on the `lit-init` instruction itself (see
13911391
// `IR::InitLiteralElementInstruction`) rather than as a separate node.
13921392
exists(int i |
13931393
n1.isAfter(lit.getElement(i)) and

0 commit comments

Comments
 (0)