Skip to content

Commit 2ee289c

Browse files
committed
Adjusted syntax to reset state variables to latest grammar changes
1 parent d495056 commit 2ee289c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/documentation/copy/en/topics/Modal Models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ Note that *contained* refers to all contents defined locally in the mode and in
104104

105105
Whenever a mode is entered with a reset transition, the subsequent timing behavior is as if the mode was never executed before.
106106
If there are state variables that need to be reset or reinitialized, then this can be done in a reaction triggered by `reset` or by marking the state variable for automatic reset (e.g.,
107-
<span class="lf-c">`state x:int(0) reset`</span>
107+
<span class="lf-c">`reset state x:int(0)`</span>
108108
<span class="lf-cpp warning">FIXME</span>
109-
<span class="lf-py">`state x(0) reset`</span>
109+
<span class="lf-py">`reset state x(0)`</span>
110110
<span class="lf-ts warning">FIXME</span>
111111
<span class="lf-rs warning">FIXME</span>
112112
).

0 commit comments

Comments
 (0)