Skip to content

Commit 0c6a029

Browse files
committed
in {repo.}/“p4-spec/p4-16/P4-16-spec.mdk”: two minor corrections in the subsection “Variable-width extraction” [12.8.2 in v1.2.2 as “Variable width extraction”] (incl. its title)
1 parent d8c10a1 commit 0c6a029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p4-16/spec/P4-16-spec.mdk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5964,15 +5964,15 @@ void packet_in.extract<T>(out T headerLValue) {
59645964
}
59655965
~ End P4Pseudo
59665966

5967-
### Variable width extraction { #sec-packet-extract-two }
5967+
### Variable-width extraction { #sec-packet-extract-two }
59685968

59695969
The two-argument `extract` handles variable-width headers, and is declared in P4 as follows:
59705970

59715971
~ Begin P4Example
59725972
void extract<T>(out T headerLvalue, in bit<32> variableFieldSize);
59735973
~ End P4Example
59745974

5975-
The expression `headerLvalue` must be a l-value representing a
5975+
The expression `headerLvalue` must be an l-value representing a
59765976
header that contains *exactly one* `varbit` field. The expression `variableFieldSize`
59775977
must evaluate to a `bit<32>` value that indicates the number of
59785978
bits to be extracted into the unique `varbit` field of the header

0 commit comments

Comments
 (0)