summaryrefslogtreecommitdiff
path: root/macros.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-03-14 23:58:33 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-03-14 23:58:33 +0300
commit49d4cdcaedb4da26cf40a22f5bb8c1d6f5341c23 (patch)
treee8322b057243224395783ee760694892d4ae265a /macros.fnl
parent66ae6fccc4bfdc8534476626b67fb0387f44468e (diff)
fix: avoid passing gsub's extra return values to sym
Diffstat (limited to 'macros.fnl')
-rw-r--r--macros.fnl8
1 files 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.