From 7c7c198953b851711a99928303acd5165f2f6f30 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Fri, 30 Nov 2012 04:01:04 -0500 Subject: [PATCH] Mark a block of code as text, and remove the python-isms. The kaleidoscope language being implemented looks similar to Python, but is not the same. --- docs/source/doc/kaleidoscope/PythonLangImpl1.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/doc/kaleidoscope/PythonLangImpl1.rst b/docs/source/doc/kaleidoscope/PythonLangImpl1.rst index 7b1c3a6..90943c1 100644 --- a/docs/source/doc/kaleidoscope/PythonLangImpl1.rst +++ b/docs/source/doc/kaleidoscope/PythonLangImpl1.rst @@ -115,13 +115,13 @@ following simple example computes `Fibonacci numbers `_: -.. code-block:: python +.. code-block:: text # Compute the x'th fibonacci number. - def fib(x): - if x < 3: + def fib(x) + if x < 3 return 1 - else: + else return fib(x-1)+fib(x-2) # This expression will compute the 40th number.