From 49d4cdcaedb4da26cf40a22f5bb8c1d6f5341c23 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Sun, 14 Mar 2021 23:58:33 +0300 Subject: fix: avoid passing gsub's extra return values to sym --- macros.fnl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros.fnl b/macros.fnl index 95346ca..ca31d58 100644 --- a/macros.fnl +++ b/macros.fnl @@ -409,10 +409,10 @@ returns the value without additional metadata. (and res (> n 1))))) (fn demethodize [s] - (-> s - tostring - (string.gsub ":" ".") - sym)) + (let [s (-> s + tostring + (string.gsub ":" "."))] + (sym s))) (fn fn* [name doc? ...] "Create (anonymous) function of fixed arity. -- cgit v1.2.3