Skip to content

Commit

Permalink
Don't split sentence over listing
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 10, 2020
1 parent 1829267 commit 2b5decb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/equations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -406,13 +406,13 @@ \subsection{reinit}\label{reinit}

\subsection{assert}\label{assert}

An equation or statement of one of the following forms:
An equation or statement of one of the following forms is an assertion:
\begin{lstlisting}[language=modelica]
assert(condition, message); // Uses level=AssertionLevel.error
assert(condition, message, assertionLevel);
assert(condition, message, level = assertionLevel);
\end{lstlisting}
is an assertion, where \lstinline!condition! is a Boolean expression, \lstinline!message! is a \lstinline!String! expression, and \lstinline!assertionLevel! is an optional parameter expression of the built-in enumeration type \lstinline!AssertionLevel!.
Here, \lstinline!condition! is a Boolean expression, \lstinline!message! is a \lstinline!String! expression, and \lstinline!assertionLevel! is an optional parameter expression of the built-in enumeration type \lstinline!AssertionLevel!.
It can be used in equation sections or algorithm sections.

\begin{nonnormative}
Expand Down

0 comments on commit 2b5decb

Please sign in to comment.