diff --git a/src/koans/10_runtime_polymorphism.clj b/src/koans/10_runtime_polymorphism.clj index 256daeb..68dd216 100644 --- a/src/koans/10_runtime_polymorphism.clj +++ b/src/koans/10_runtime_polymorphism.clj @@ -10,8 +10,8 @@ "!"))) (defmulti diet (fn [x] (:eater x))) -(defmethod diet :herbivore [a] (str (:name a), " eats ", "veggies.")) -(defmethod diet :carnivore [a] (str (:name a), " eats ", "animals.")) +(defmethod diet :herbivore [a] (str (:name a) " eats veggies.")) +(defmethod diet :carnivore [a] (str (:name a) " eats animals.")) (defmethod diet :default [a] (str "I don't know what ", (:name a), " eats.")) (meditations