Skip to content

Commit e614de7

Browse files
authored
Fix small issues in the spec document (#540)
1 parent 71635cf commit e614de7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎document/core/intro/introduction.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Introduction
33

44
WebAssembly (abbreviated Wasm [#wasm]_) is a *safe, portable, low-level code format*
55
designed for efficient execution and compact representation.
6-
Its main goal is to enable high performance applications on the Web, but it does not make any Web-specific assumptions or provide Web-specific features, so can be employed in other environments as well.
6+
Its main goal is to enable high performance applications on the Web, but it does not make any Web-specific assumptions or provide Web-specific features, so it can be employed in other environments as well.
77

88
WebAssembly is an open standard developed by a `W3C Community Group <https://www.w3.org/community/webassembly/>`_ that includes representatives of all major browser vendors.
99

‎document/core/intro/overview.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This language is structured around the following concepts.
7171
Such a memory is created with an initial size but can be grown dynamically.
7272
A program can load and store values from/to a linear memory at any byte address (including unaligned).
7373
Integer loads and stores can specify a *storage size* which is smaller than the size of the respective value type.
74-
A trap occurs if access is not within the bounds of the current memory size.
74+
A trap occurs if an access is not within the bounds of the current memory size.
7575

7676
.. _module:
7777

‎document/core/syntax/values.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Every value has a *sign* and a *magnitude*.
9696

9797
Magnitudes can either be expressed as *normal* numbers of the form :math:`m_0.m_1m_2\dots m_M \cdot2^e`, where :math:`e` is the exponent and :math:`m` is the *significand* whose most signifcant bit :math:`m_0` is :math:`1`,
9898
or as a *subnormal* number where the exponent is fixed to the smallest possible value and :math:`m_0` is :math:`0`; among the subnormals are positive and negative zero values.
99-
Since the significands are binary values, normals are represented in the form :math:`(1 + m\cdot 2^{-M})`, where :math:`M` is the bit width of :math:`m`; similarly for subnormals.
99+
Since the significands are binary values, normals are represented in the form :math:`(1 + m\cdot 2^{-M}) \cdot 2^e`, where :math:`M` is the bit width of :math:`m`; similarly for subnormals.
100100

101101
Possible magnitudes also include the special values :math:`\infty` (infinity) and |NAN| (*NaN*, not a number).
102102
NaN values have a *payload* that describes the mantissa bits in the underlying :ref:`binary representation <aux-fbits>`.

0 commit comments

Comments
 (0)