summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2009-12-02 11:50:46 -0500
committerRich Hickey <richhickey@gmail.com>2009-12-02 11:50:46 -0500
commit2c25d62ece74fb4c93aaff4100c1afffc008752f (patch)
treef74e2013359ba5313979546f709a49c481c15e34
parent7181f91fed0de5502ee7562bd2f02e844bb0cd09 (diff)
doc fix
-rw-r--r--src/clj/clojure/core_deftype.clj10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/clj/clojure/core_deftype.clj b/src/clj/clojure/core_deftype.clj
index 6b54f2f9..401f0406 100644
--- a/src/clj/clojure/core_deftype.clj
+++ b/src/clj/clojure/core_deftype.clj
@@ -405,12 +405,12 @@
"A protocol is a named set of named methods and their signatures:
(defprotocol AProtocolName
- ;optional doc string
- \"A doc string for AProtocol abstraction\"
+ ;optional doc string
+ \"A doc string for AProtocol abstraction\"
;method signatures
- (bar [a b] \"bar docs\")
- (baz ([a] [a b] [a b & c]) \"baz docs\"))
+ (bar [a b] \"bar docs\")
+ (baz ([a] [a b] [a b & c]) \"baz docs\"))
No implementations are provided. Docs can be specified for the
protocol overall and for each method. The above yields a set of
@@ -424,7 +424,7 @@
defprotocol will automatically generate a corresponding interface,
with the same name as the protocol, i.e. given a protocol
- my.ns/Protocol, an interface my.ns.MyProtocol. The interface will
+ my.ns/Protocol, an interface my.ns.Protocol. The interface will
have methods corresponding to the protocol functions, and the
protocol will automatically work with instances of the interface.