diff --git a/chapters/statements.tex b/chapters/statements.tex index 3e65de966..3ac8a0b80 100644 --- a/chapters/statements.tex +++ b/chapters/statements.tex @@ -64,10 +64,10 @@ \subsection{Execution of an algorithm in a model}\label{execution-of-an-algorith Example: \begin{lstlisting}[language=modelica] model Test // wrong Modelica model (has 4 equations for 2 unknowns) - Real x[2](start={-11, -22}); -algorithm // conceptually: x = {1,-22} + Real x[2](start = {-11, -22}); +algorithm // conceptually: x = {1, -22} x[1] := 1; -algorithm // conceptually: x = {-11,2} +algorithm // conceptually: x = {-11, 2} x[2] := 2; end Test; \end{lstlisting} @@ -130,7 +130,6 @@ \subsection{Simple Assignment Statements}\label{simple-assignment-statements} Assignment to array variables with subscripts is described in \cref{array-indexing}. - \subsubsection{Assignments from Called Functions with Multiple Results}\label{assignments-from-called-functions-with-multiple-results} There is a special form of assignment statement that is used only when the right-hand side contains a call to a function with multiple results.