From 47381ad33bf2d28f9552e9436278ce7b75f9ddb9 Mon Sep 17 00:00:00 2001 From: Cam Saul Date: Fri, 9 Sep 2022 07:30:08 +0000 Subject: [PATCH] README fixes --- README.md | 6 +++--- src/methodical/macros.clj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b44ace7..62f4f80 100644 --- a/README.md +++ b/README.md @@ -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] diff --git a/src/methodical/macros.clj b/src/methodical/macros.clj index f1cd4ae..1eadb2c 100644 --- a/src/methodical/macros.clj +++ b/src/methodical/macros.clj @@ -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