Skip to content

Commit 0031ea4

Browse files
authored
[spec] Fix context composition in text format (#1578)
1 parent 7d905df commit 0031ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document/core/text/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ If inline declarations are given, then their types must match the referenced :re
108108
\end{array} \\
109109
\end{array}
110110
111-
The synthesized attribute of a |Ttypeuse| is a pair consisting of both the used :ref:`type index <syntax-typeidx>` and the updated :ref:`identifier context <text-context>` including possible parameter identifiers.
111+
The synthesized attribute of a |Ttypeuse| is a pair consisting of both the used :ref:`type index <syntax-typeidx>` and the local :ref:`identifier context <text-context>` containing possible parameter identifiers.
112112
The following auxiliary function extracts optional identifiers from parameters:
113113

114114
.. math::
@@ -200,7 +200,7 @@ Function definitions can bind a symbolic :ref:`function identifier <text-id>`, a
200200
\text{(}~\text{func}~~\Tid^?~~x,I'{:}\Ttypeuse_I~~
201201
(t{:}\Tlocal)^\ast~~(\X{in}{:}\Tinstr_{I''})^\ast~\text{)} \\ &&& \qquad
202202
\Rightarrow\quad \{ \FTYPE~x, \FLOCALS~t^\ast, \FBODY~\X{in}^\ast~\END \} \\ &&& \qquad\qquad\qquad
203-
(\iff I'' = I' \compose \{\ILOCALS~\F{id}(\Tlocal)^\ast\} \idcwellformed) \\[1ex]
203+
(\iff I'' = I \compose I' \compose \{\ILOCALS~\F{id}(\Tlocal)^\ast\} \idcwellformed) \\[1ex]
204204
\production{local} & \Tlocal &::=&
205205
\text{(}~\text{local}~~\Tid^?~~t{:}\Tvaltype~\text{)}
206206
\quad\Rightarrow\quad t \\

0 commit comments

Comments
 (0)