Skip to content

Commit cc70972

Browse files
committed
Fix deftemplate slicing.
1 parent 4d1c207 commit cc70972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spork/pm.janet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@
401401
Template is parsed from the last element of `body` which should be string and can contain substitutions.
402402
```
403403
[template-name & body]
404-
~(def ,template-name ,;(drop 1 body) ,(make-template (last body))))
404+
~(def ,template-name ,;(slice body 0 -2) ,(make-template (last body))))
405405

406406
(defn opt-ask
407407
```

0 commit comments

Comments
 (0)