branch: externals/dash
commit c61113bb9b707a58edecf7cb15a3cbcdd606b2ad
Author: Matus Goljer <[email protected]>
Commit: Matus Goljer <[email protected]>
[-let] Update outdated comment
---
dash.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dash.el b/dash.el
index b3c1e02..ab906e2 100644
--- a/dash.el
+++ b/dash.el
@@ -1260,7 +1260,9 @@ sorts it in descending order."
(dash--match-ignore-place-p (car m)))
(setq n (1+ n)) (!cdr m))
(cond
- ;; handle improper lists
+ ;; when we only have one pattern in the list, we don't have to
+ ;; create a temporary binding (--dash-source--) for the source
+ ;; and just use the input directly
((and (consp m)
(not (cdr m)))
(dash--match (car m) (dash--match-cons-get-car n source)))