p4lang / p4-spec

Apache License 2.0
178 stars 80 forks source link

Change code example for sec-type-variable-operations #1321

Closed jaehyun1ee closed 1 day ago

jaehyun1ee commented 3 weeks ago

Following the discussion #1295, this changes the code example of sec-type-variable-operations such that declaration of a local of a variable type happens inside a generic function, not a generic control.

jafingerhut commented 3 weeks ago

A comment on #1295 suggests also removing the mention of controls and parsers from the paragraph just before this code example. That seems best to do in this same PR, if it is a correct change.

jaehyun1ee commented 3 weeks ago

Ah, thank you for noticing it :) Also fixed the paragraph in correspondence!