Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #120

Merged
merged 1 commit into from
Feb 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/cftbat/multimethods-records-protocols.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h3>Protocols</h3>
<span class="tok-c1">; =&gt; "meh about blorb"</span>
</code></pre></div></div>

<p class="Body">Because we haven’t defined a <code>Psychodynamics</code> implementation for numbers, Clojure dispatches calls to <code>thoughts</code> and <code>feelings</code> to the implementation defined for <code>java.lang.Object</code>.</p>
<p class="Body">Because we haven’t defined a <code>Psychodynamics</code> implementation for numbers, Clojure dispatches calls to <code>thoughts</code> and <code>feelings-about</code> to the implementation defined for <code>java.lang.Object</code>.</p>
<p class="Body">Instead of making multiple calls to <code>extend-type</code> to extend multiple types, you can use <code>extend-protocol</code>, which lets you define protocol implementations for multiple types at once. Here’s how you’d define the preceding protocol implementations:</p>
<div class="listingblock"><div class="content"><pre class="pygments highlight"><code data-lang="clojure" class="block"><span class="tok-p">(</span><span class="tok-nf">extend-protocol</span> <span class="tok-nv">Psychodynamics</span>
<span class="tok-nv">java.lang.String</span>
Expand Down