From c5dfba3c4ffe7edd1559bdbe25b3771f43115576 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 13 Apr 2014 18:04:42 +0300 Subject: [PATCH] Fix a code-block in the lambda documentation. --- docs/language/api.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/language/api.rst b/docs/language/api.rst index 430be99..be07a3e 100644 --- a/docs/language/api.rst +++ b/docs/language/api.rst @@ -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: