emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dash c952a54 300/426: Merge pull request #90 from tmals


From: Phillip Lord
Subject: [elpa] externals/dash c952a54 300/426: Merge pull request #90 from tmalsburg/last-item-doc
Date: Tue, 04 Aug 2015 19:38:26 +0000

branch: externals/dash
commit c952a543a495833d652909c75b53633c01a3c174
Merge: 2dfd748 c08fcba
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]