diff options
Diffstat (limited to 'testing_and_debugging/slides.tex')
-rw-r--r-- | testing_and_debugging/slides.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing_and_debugging/slides.tex b/testing_and_debugging/slides.tex index baa0811..6be2cde 100644 --- a/testing_and_debugging/slides.tex +++ b/testing_and_debugging/slides.tex @@ -110,7 +110,7 @@ def gcd(a, b): \lstset{language=Python} \begin{lstlisting} def gcd(a, b): - if b == 0: + if a % b == 0: return a return gcd(b, a%b) |