Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Dec 14, 2022
1 parent c646156 commit f7e8217
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/inheritance.tex
Expand Up @@ -511,10 +511,10 @@ \subsection{Modifiers for Array Elements}\label{modifiers-for-array-elements}
Note that the array is not necessarily the closest enclosing identifier.
\begin{lstlisting}[language=modelica]
model G
C c[2]( each a = {1, 2, 3}, d(start={4, 5}, each fixed=true));
// The second each relies on c being an array,
C c[2](each a = {1, 2, 3}, d(start={4, 5}, each fixed=true));
// The second each relies on c being an array,
// without the second each we would have to write:
C c2[2]( each a = {1, 2, 3}, d(start={4, 5}, fixed=fill(true, 2)));
C c2[2](each a = {1, 2, 3}, d(start={4, 5}, fixed=fill(true, 2)));
end G;
\end{lstlisting}
\end{example}
Expand Down

0 comments on commit f7e8217

Please sign in to comment.