From cd6982f669d780039cfdb2b2036a99dfb1a21ee8 Mon Sep 17 00:00:00 2001 From: David Powell Date: Wed, 14 Jul 2010 22:28:21 +0100 Subject: [PATCH] fixed extend-protocol doc --- 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 ffe3298..6b0cdf4 100644 --- a/src/clj/clojure/core_deftype.clj +++ b/src/clj/clojure/core_deftype.clj @@ -729,13 +729,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 @@ -748,13 +748,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 -- 1.6.5.1.1367.gcd48