diff options
author | David Powell <djpowell@djpowell.net> | 2010-07-14 22:28:21 +0100 |
---|---|---|
committer | Stuart Halloway <stu@thinkrelevance.com> | 2010-07-27 16:50:51 -0400 |
commit | 4d8932507a4f914d3bbdab738aa2decad1403d03 (patch) | |
tree | 3cbf29e83e42e32d93760f217a64bc022af25425 | |
parent | ec2037e5d93b6634d890d0a1266481aa224932d0 (diff) |
fixed extend-protocol doc
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
-rw-r--r-- | src/clj/clojure/core_deftype.clj | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/clj/clojure/core_deftype.clj b/src/clj/clojure/core_deftype.clj index 3b531f05..c14f82f3 100644 --- a/src/clj/clojure/core_deftype.clj +++ b/src/clj/clojure/core_deftype.clj @@ -731,13 +731,13 @@ "Useful when you want to provide several implementations of the same protocol all at once. Takes a single protocol and the implementation of that protocol for one or more types. Expands into calls to - extend-type and extend-class: + extend-type: (extend-protocol Protocol - ::AType + AType (foo [x] ...) (bar [x y] ...) - ::BType + BType (foo [x] ...) (bar [x y] ...) AClass @@ -750,13 +750,13 @@ expands into: (do - (clojure.core/extend-type ::AType Protocol + (clojure.core/extend-type AType Protocol (foo [x] ...) (bar [x y] ...)) - (clojure.core/extend-type ::BType Protocol + (clojure.core/extend-type BType Protocol (foo [x] ...) (bar [x y] ...)) - (clojure.core/extend-class AClass Protocol + (clojure.core/extend-type AClass Protocol (foo [x] ...) (bar [x y] ...)) (clojure.core/extend-type nil Protocol |