WebAssembly / spec

WebAssembly specification, reference interpreter, and test suite.
https://webassembly.github.io/spec/
Other
3.13k stars 445 forks source link

[spec] Fix typo in introduction of element section's bitfield #1654

Closed am009 closed 1 year ago

am009 commented 1 year ago

The bit 0 should indicates a passive or active segment.

rossberg commented 1 year ago

I don't think this fix is correct. When bit 0 is set, it is either passive or declarative, like the note is saying. Active segments require a cleared bit 0.

am009 commented 1 year ago

You are correct.

But now I think it is a little bit misleading. Bit 0 being set to 1 indicates a passive or declarative segment. What about changing it to "Bit 0 indicates a passive or declarative segment instead of an active segment".

Probably it's just fine. I don't know now.

rossberg commented 1 year ago

Note that the current wording mirrors the one for data segments, so if we change it, we should probably change both.