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.
This commit is contained in:
parent
f9376bf2d0
commit
7c7c198953
1 changed files with 4 additions and 4 deletions
|
|
@ -115,13 +115,13 @@ following simple example computes `Fibonacci
|
|||
numbers <http://en.wikipedia.org/wiki/Fibonacci_number>`_:
|
||||
|
||||
|
||||
.. 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue