Skip to content

Commit

Permalink
When comments end in a period, start sentence with upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed May 10, 2021
1 parent 3c05006 commit f7f3161
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions chapters/operatorsandexpressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1387,23 +1387,23 @@ \section{Variability of Expressions}\label{variability-of-expressions}
\begin{lstlisting}[language=modelica]
model Constants
parameter Real p1 = 1;
constant Real c1 = p1 + 2; // error, not a constant expression
parameter Real p2 = p1 + 2; // fine
constant Real c1 = p1 + 2; // Error, not a constant expression.
parameter Real p2 = p1 + 2; // Fine.
end Constants;
model Test
Constants c1(p1=3); // fine
Constants c2(p2=7); // fine, declaration equation can be modified
Constants c1(p1 = 3); // Fine.
Constants c2(p2 = 7); // Fine, declaration equation can be modified.
Real x;
Boolean b1 = noEvent(x > 1); // error, since b1 is a discrete-time variable
Boolean b1 = noEvent(x > 1); // Error, since b1 is a discrete-time variable
// and noEvent(x > 1) is not discrete-time.
Boolean b2;
Integer i1;
Integer i2;
algorithm
i1 := x; // error, assignment to variable of lesser variability.
i1 := x; // Error, assignment to variable of lesser variability.
equation
b2 = noEvent(x > 1); // no variability error, but equation cannot be matched.
i2 = x; // no variability error, and can be matched to x.
b2 = noEvent(x > 1); // No variability error, but equation cannot be matched.
i2 = x; // No variability error, and can be matched to x.
end Test;
\end{lstlisting}
\end{example}
Expand Down

0 comments on commit f7f3161

Please sign in to comment.