From 08734602ca8ee5a762bd83724e05fb8d06a2a8cb Mon Sep 17 00:00:00 2001 From: Tuukka Turto Date: Wed, 10 Jul 2013 07:11:11 +0300 Subject: [PATCH] defclass clarification --- docs/language/api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/language/api.rst b/docs/language/api.rst index 03623da..06cc647 100644 --- a/docs/language/api.rst +++ b/docs/language/api.rst @@ -198,12 +198,12 @@ defclass -------- new classes are declared with `defclass`. It can takes two optional parameters: -a vector defining a possible super class and another vector containing +a vector defining a possible super classes and another vector containing attributes of the new class as two item vectors. .. code-block:: clj - (defclass class-name [super-class] + (defclass class-name [super-class-1 super-class-2] [[attribute value]]) Both values and functions can be bound on the new class as shown by the example