Skip to content

Commit

Permalink
Merge pull request p4lang#1357 from vlstill/vstill/loop-formatting
Browse files Browse the repository at this point in the history
Fix format, remove remrant of conflict resolution
  • Loading branch information
jafingerhut authored Jan 14, 2025
2 parents e992329 + 84722e2 commit a45fd71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions p4-16/spec/P4-16-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5744,7 +5744,7 @@ include::grammar.adoc[tag=forInitStatement]
include::grammar.adoc[tag=forUpdateStatement]
----

The basic 3-clause `for` statement is similar to a C for statement. The init statements
The basic 3-clause `for` statement is similar to a C `for` statement. The init statements
will be executed prior to executing the loop. The condition will be evaluated before
each iteration, to determine if the loop should exit. If the condition is false, the loop
will exit without executing any statements from the loop body or update.
Expand All @@ -5763,9 +5763,8 @@ A `continue;` statement may be executed in a loop body to skip the rest of the c
loop body, executing the update statements and then evaluating the condition to
either execute the loop body again, or terminate the loop.

The scope of any declaration in a for statement is limited to the for statement and its body.
The scope of any declaration in a `for` statement is limited to the `for` statement and its body.

>>>>>>> upstream/main:p4-16/spec/P4-16-spec.mdk
[#sec-packet-parsing]
== Packet parsing

Expand Down

0 comments on commit a45fd71

Please sign in to comment.