Skip to content

Commit

Permalink
Simplify examples of invalid code
Browse files Browse the repository at this point in the history
As suggested by Hans.

Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
  • Loading branch information
henrikt-ma and HansOlsson committed Nov 30, 2021
1 parent 811ea8b commit 6ff7d9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapters/introduction.tex
Expand Up @@ -107,8 +107,7 @@ \section{Notation}\label{notation}
\begin{lstlisting}[language=modelica]
model Example "Example used to illustrate syntax highlighting"
/* The string above is a class description string, this is a comment. */
//String s = 1.0; /* Commenting out invalid code like this is rare. */
/* Instead of commenting-out invalid code, it is typically done this way: */
/* Invalid code is typically done this way: */
String s = 1.0; // Error: No conversion form Real to String.
Real x;
equation
Expand Down

0 comments on commit 6ff7d9b

Please sign in to comment.