diff --git a/chapters/arrays.tex b/chapters/arrays.tex index d539422a4..d1005b179 100644 --- a/chapters/arrays.tex +++ b/chapters/arrays.tex @@ -784,8 +784,8 @@ \subsubsection{Array Constructor with Several Iterators}\label{array-constructor \begin{example} \begin{lstlisting}[language=modelica] -Real hilb[:,:]= { 1/(i+j-1) for i in 1:n, j in 1:n}; -Real hilb2[:,:]={{ 1/(i+j-1) for j in 1:n} for i in 1:n}; +Real toeplitz[:,:]={i-j for i in 1:n, j in 1:n}; +Real toeplitz2[:,:]={{i-j for i in 1:n} for j in 1:n}; \end{lstlisting} \end{example}