branch: externals/dash
commit c952a543a495833d652909c75b53633c01a3c174
Merge: 2dfd748 c08fcba
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>

    Merge pull request #90 from tmalsburg/last-item-doc
    
    Fixed documentation of `-last-item'.
---
 README.md |    2 +-
 dash.el   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 07b304f..7e55dde 100644
--- a/README.md
+++ b/README.md
@@ -1136,7 +1136,7 @@ Returns the first item of `list`, or nil on an empty list.
 
 #### -last-item `(list)`
 
-Returns the first item of `list`, or nil on an empty list.
+Returns the last item of `list`, or nil on an empty list.
 
 ```cl
 (-last-item '(1 2 3)) ;; => 3
diff --git a/dash.el b/dash.el
index 8667583..b91f037 100644
--- a/dash.el
+++ b/dash.el
@@ -337,7 +337,7 @@ To get the first item in the list no questions asked, use 
`car'."
   "Returns the first item of LIST, or nil on an empty list.")
 
 (defun -last-item (list)
-  "Returns the first item of LIST, or nil on an empty list."
+  "Returns the last item of LIST, or nil on an empty list."
   (car (last list)))
 
 (defmacro --count (pred list)

Reply via email to