Skip to content

Commit 67abe3e

Browse files
committed
fix tabs
1 parent 1e68fcd commit 67abe3e

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

ch2.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ \section{Example with some mathematics}
7777
\begin{algorithm}
7878
\begin{algorithmic}
7979
\Function{ExecuteWithHighProbability}{$A$}
80-
\State $r \gets$ a random number between $0$ and $1$
81-
\State $\varepsilon \gets 0.0000000000000000000000000000000000000042$
82-
\If{$r\geq\varepsilon$}
83-
\State execute $A$ \Comment{We discard the return value}
84-
\Else
85-
\State print: \texttt{Not today, sorry.}
86-
\EndIf
80+
\State $r \gets$ a random number between $0$ and $1$
81+
\State $\varepsilon \gets 0.0000000000000000000000000000000000000042$
82+
\If{$r\geq\varepsilon$}
83+
\State execute $A$ \Comment{We discard the return value}
84+
\Else
85+
\State print: \texttt{Not today, sorry.}
86+
\EndIf
8787
\EndFunction
8888
\end{algorithmic}
8989
\caption{Algorithm that executes an action with high probability. Do not care about formal semantics in the pseudocode --- semicolons, types, correct function call parameters and similar nonsense from `realistic' languages can be safely omitted. Instead make sure that the intuition behind (and perhaps some hints about its correctness or various corner cases) can be seen as easily as possible.}

howto.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ \chapter{Using CoolThesisSoftware}
3232
#include <iostream>
3333

3434
int main() {
35-
int i;
36-
if(i = cool::ProcessAllData()) // returns 0 on error
37-
std::cout << i << std::endl;
38-
else
39-
std::cerr << "error!" << std::endl;
40-
return 0;
35+
int i;
36+
if(i = cool::ProcessAllData()) // returns 0 on error
37+
std::cout << i << std::endl;
38+
else
39+
std::cerr << "error!" << std::endl;
40+
return 0;
4141
}
4242
\end{lstlisting}
4343
\caption{Example program.}

0 commit comments

Comments
 (0)