Fix a code-block in the lambda documentation.

This commit is contained in:
Berker Peksag 2014-04-13 18:04:42 +03:00
parent 6072557b6c
commit c5dfba3c4f

View File

@ -814,11 +814,15 @@ Just as in normal function definitions, if the first element of the
body is a string, it serves as docstring. This is useful for giving
class methods docstrings.
.. code-block:: clj
=> (setv times-three
... (fn [x]
... "Multiplies input by three and returns the result."
... (* x 3)))
Then test it via the Python built-in ``help`` function::
=> (help times-three)
Help on function times_three: