Skip to content

Commit d8c10a1

Browse files
committed
in {repo.}/“p4-spec/p4-16/P4-16-spec.mdk”: several minor corrections in the subsection “Fixed-width extraction” [12.8.1 in v1.2.2 as “Fixed width extraction”]
1 parent 7aed1d2 commit d8c10a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5914,7 +5914,7 @@ packet_in {
59145914
}
59155915
~ End P4Pseudo
59165916

5917-
### Fixed width extraction { #sec-packet-extract-one }
5917+
### Fixed-width extraction { #sec-packet-extract-one }
59185918

59195919
The single-argument `extract` method handles fixed-width headers,
59205920
and is declared in P4 as follows:
@@ -5923,7 +5923,7 @@ and is declared in P4 as follows:
59235923
void extract<T>(out T headerLeftValue);
59245924
~ End P4Example
59255925

5926-
The expression `headerLeftValue` must evaluate to a l-value (see
5926+
The expression `headerLeftValue` must evaluate to an l-value (see
59275927
Section [#sec-lvalues]) of type `header` with a fixed width. If
59285928
this method executes successfully, on completion the `headerLvalue`
59295929
is filled with data from the packet and its validity bit is set to `true`. This
@@ -5933,7 +5933,7 @@ enough bits left in the packet to fill the specified header.
59335933
For example, the following program fragment extracts an Ethernet header:
59345934

59355935
~ Begin P4Example
5936-
struct Result { Ethernet_h ethernet; /* more field omitted */ }
5936+
struct Result { Ethernet_h ethernet; /* more fields omitted */ }
59375937
parser P(packet_in b, out Result r) {
59385938
state start {
59395939
b.extract(r.ethernet);

0 commit comments

Comments
 (0)