From ff028926b0694be7c7466baab4343a554d74001c Mon Sep 17 00:00:00 2001 From: Varun Vats Date: Tue, 25 Jun 2019 10:21:22 -0700 Subject: [PATCH] Fix typo in Fibonacci example The line for computing fib_14 in the code snippet uses fib_13 twice: >>> fib_14 = fib_13 + fib_13 >>> fib_14 377 While the result shown for fib_14 is correct (377), going by the above, the result of fib_14 would be 466 instead. This line should instead be: >>> fib_14 = fib_13 + fib_12 --- .../techniques-in-computer-science/variables/Chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textbooks/techniques-in-computer-science/variables/Chapter.md b/src/textbooks/techniques-in-computer-science/variables/Chapter.md index a7088f9..aa640ee 100644 --- a/src/textbooks/techniques-in-computer-science/variables/Chapter.md +++ b/src/textbooks/techniques-in-computer-science/variables/Chapter.md @@ -425,7 +425,7 @@ Now we can proceed to calculate the remaining Fibonacci numbers, according to th >>> fib_11 = fib_10 + fib_9 >>> fib_12 = fib_11 + fib_10 >>> fib_13 = fib_12 + fib_11 ->>> fib_14 = fib_13 + fib_13 +>>> fib_14 = fib_13 + fib_12 >>> fib_14 377 ```