summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Powell <djpowell@djpowell.net>2010-07-14 22:28:21 +0100
committerStuart Halloway <stu@thinkrelevance.com>2010-07-27 17:03:58 -0400
commit973ea840118fa1deca8eb92c81130ae61525a74a (patch)
treeb7edce21be9b178c59374fb2a7fd4d299ad10521
parent9929b83d3a2b65bc26cbd8f433e25b1671ab583a (diff)
fixed extend-protocol doc
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
-rw-r--r--src/clj/clojure/core_deftype.clj12
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