Skip to content

Commit

Permalink
README fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul committed Sep 9, 2022
1 parent 87da5ed commit 47381ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,16 +500,16 @@ If you include a `:dispatch-value-spec` in the metadata of a `defmulti`, it will
dispatch value form of any `defmethod` forms at macroexpansion time:

```clj
(macros/defmulti mfx
(m/defmulti mfx
{:arglists '([x y]), :dispatch-value-spec (s/cat :x keyword?, :y int?)}
(fn [x y] [x y]))

(macros/defmethod mfx [:x 1]
(m/defmethod mfx [:x 1]
[x y]
{:x x, :y y})
;; => #'methodical.macros-test/mfx

(macros/defmethod mfx [:x]
(m/defmethod mfx [:x]
[x y]
{:x x, :y y})
;; failed: Insufficient input in: [0] at: [:args-for-method-type :primary :dispatch-value :y] [:x]
Expand Down
2 changes: 1 addition & 1 deletion src/methodical/macros.clj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"A dispatch value as parsed to [[defmethod]] (i.e., not-yet-evaluated) can be ANYTHING other than the following two
things:
1. an legal aux qualifier for the current method combination, e.g. `:after` or `:around`
1. A legal aux qualifier for the current method combination, e.g. `:after` or `:around`
It makes the parse for
Expand Down

0 comments on commit 47381ad

Please sign in to comment.