From c08fcba11dc6fad554f3b609ab68cb83d2832a32 Mon Sep 17 00:00:00 2001 From: Titus von der Malsburg Date: Mon, 7 Apr 2014 10:34:52 +0100 Subject: [PATCH] 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)