From f941c9f38a93e14e6da285e01631c5f341d575be Mon Sep 17 00:00:00 2001 From: Zachary Stewart Date: Wed, 26 Jun 2024 10:44:53 -0400 Subject: [PATCH] [spec] Clarify binary element bitfield meaning. In the binary format, when treating the number distinguishing different kinds of element sections as a bitfield, the first bit distinguishes active segements from passive/declarative segments. The previous phrasing used "indicate" to mean that a 1 bit signifies "passive or declarative", however it is easy to misread this as passive and declarative referring to the two possible values of the bit instead. This change modifies the description of Bit 0 to make it clearer that it is differentiating active from passive or declarative, not passive from declarative, by using the "distinguishes ... from ..." language used in describing bit 1. --- document/core/binary/modules.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document/core/binary/modules.rst b/document/core/binary/modules.rst index 95ae768968..10a3597926 100644 --- a/document/core/binary/modules.rst +++ b/document/core/binary/modules.rst @@ -360,7 +360,7 @@ It decodes into a vector of :ref:`element segments ` that represent .. note:: The initial integer can be interpreted as a bitfield. - Bit 0 indicates a passive or declarative segment, + Bit 0 distinguishes a passive or declarative segment from an active segment, bit 1 indicates the presence of an explicit table index for an active segment and otherwise distinguishes passive from declarative segments, bit 2 indicates the use of element type and element :ref:`expressions ` instead of element kind and element indices.