Fix a code-block in the lambda documentation.
This commit is contained in:
parent
6072557b6c
commit
c5dfba3c4f
@ -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
|
body is a string, it serves as docstring. This is useful for giving
|
||||||
class methods docstrings.
|
class methods docstrings.
|
||||||
|
|
||||||
|
.. code-block:: clj
|
||||||
|
|
||||||
=> (setv times-three
|
=> (setv times-three
|
||||||
... (fn [x]
|
... (fn [x]
|
||||||
... "Multiplies input by three and returns the result."
|
... "Multiplies input by three and returns the result."
|
||||||
... (* x 3)))
|
... (* x 3)))
|
||||||
|
|
||||||
|
Then test it via the Python built-in ``help`` function::
|
||||||
|
|
||||||
=> (help times-three)
|
=> (help times-three)
|
||||||
Help on function times_three:
|
Help on function times_three:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user