Skip to content

Commit

Permalink
Minor language fix, and rearrange for consistent formatting and naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Nov 10, 2021
1 parent a116ee8 commit 6f44f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/functions.tex
Expand Up @@ -133,8 +133,8 @@ \subsection{Inheritance of Functions}\label{inheritance-of-functions}
end foo;
Real x = time;
function f1 = foo(x1 = x);
constant Real z = f1(x2 = 1); // Illegal since 'x' is seen as argument
constant Real z2 = f1(x1 = 2); // Legal, since 'x1' has a new value.
constant Real z1 = f1(x1 = 2); // Legal, since 'x1' has a new value.
constant Real z2 = f1(x2 = 1); // Illegal, since 'x' is seen as an argument.
end M;
\end{lstlisting}
\end{example}
Expand Down

0 comments on commit 6f44f38

Please sign in to comment.