Skip to content

Commit ef44fdd

Browse files
committed
Docs: improve appearance of tilde and caret operator symbols
1 parent 5a8f7d5 commit ef44fdd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/doc/languagespec.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ \section{{\cf int}}
14901490
{\ce ++} \inttype & \inttype & pre-increment by 1 \\[0.5ex]
14911491
{\ce --} \inttype & \inttype & pre-decrement by 1 \\[0.5ex]
14921492
{\cf {\bfseries -} int} & \inttype & unary negation \\[0.5ex]
1493-
\verb|~| {\cf int} & \inttype & bitwise complement (1 and 0 bits flipped) \\[0.5ex]
1493+
{\ce \textasciitilde} {\cf int} & \inttype & bitwise complement (1 and 0 bits flipped) \\[0.5ex]
14941494
{\cf {\bfseries !} int} & \inttype & boolean `not' (1 if operand is zero, otherwise 0) \\[0.5ex]
14951495
\hline
14961496
{\cf int {\bfseries *} int} & \inttype & multiplication \\[0.5ex]
@@ -1519,7 +1519,7 @@ \section{{\cf int}}
15191519
\hline
15201520
{\cf int {\bfseries \&} int} & \inttype & bitwise and \\[0.5ex]
15211521
\hline
1522-
{\cf int {\bfseries \verb|^|} int} & \inttype & bitwise exclusive or \\[0.5ex]
1522+
{\cf int {\bfseries \textasciicircum} int} & \inttype & bitwise exclusive or \\[0.5ex]
15231523
\hline
15241524
{\cf int {\bfseries |} int} & \inttype & bitwise or \\[0.5ex]
15251525
\hline
@@ -2366,7 +2366,7 @@ \section{Expressions}
23662366

23672367
\begin{tabbing}
23682368
\hspace{0.25in} {\cf -} \emph{expr} \hspace{1in} \= (negation) \\
2369-
\hspace{0.25in} \verb|~| \emph{expr} \> (bitwise complement) \\
2369+
\hspace{0.25in} {\cf \textasciitilde} \emph{expr} \> (bitwise complement) \\
23702370
\hspace{0.25in} \emph{expr} {\cf *} \emph{expr} \> (multiplication) \\
23712371
\hspace{0.25in} \emph{expr} {\cf /} \emph{expr} \> (division) \\
23722372
\hspace{0.25in} \emph{expr} {\cf +} \emph{expr} \> (addition) \\
@@ -2376,7 +2376,7 @@ \section{Expressions}
23762376
\hspace{0.25in} \emph{expr} {\cf >>} \emph{expr} \> (integer shift right) \\
23772377
\hspace{0.25in} \emph{expr} {\cf \&} \emph{expr} \> (bitwise and) \\
23782378
\hspace{0.25in} \emph{expr} {\cf |} \emph{expr} \> (bitwise or) \\
2379-
\hspace{0.25in} \emph{expr} \verb|^| \emph{expr} \> (bitwise exclusive or) \\
2379+
\hspace{0.25in} \emph{expr} {\cf \textasciicircum} \emph{expr} \> (bitwise exclusive or) \\
23802380
\end{tabbing}
23812381

23822382
The operators {\cf +}, {\cf -}, {\cf *}, {\cf /}, and the unary {\cf -}
@@ -2389,7 +2389,7 @@ \section{Expressions}
23892389
matrix.
23902390

23912391
The integer and bit-wise operators {\cf \%}, {\cf <<}, {\cf >>},
2392-
{\cf \&}, {\cf |}, {\cf \verb|^|}, and {\cf \verb|~|} may only be
2392+
{\cf \&}, {\cf |}, {\cf \textasciicircum}, and {\cf \textasciitilde} may only be
23932393
used with expressions of type \inttype.
23942394

23952395
For details on which operators are allowed, please consult the operator

0 commit comments

Comments
 (0)