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

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

[elpa] externals/dash 0db2f5a 208/439: Fix second example for -last/firs


From: Phillip Lord
Subject: [elpa] externals/dash 0db2f5a 208/439: Fix second example for -last/first-item
Date: Tue, 04 Aug 2015 20:28:03 +0000

branch: externals/dash
commit 0db2f5a5abff2ee79afabd186d9355df769575e7
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>

    Fix second example for -last/first-item
---
 README.md       |    4 +++-
 dev/examples.el |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 3a10b12..33b53e8 100644
--- a/README.md
+++ b/README.md
@@ -701,6 +701,7 @@ Returns the first item of `list`, or nil on an empty list.
 
 ```cl
 (-first-item '(1 2 3)) ;; => 1
+(-first-item nil) ;; => nil
 ```
 
 ### -last-item `(list)`
@@ -709,6 +710,7 @@ Returns the first item of `list`, or nil on an empty list.
 
 ```cl
 (-last-item '(1 2 3)) ;; => 3
+(-last-item nil) ;; => nil
 ```
 
 ### -union `(list list2)`
@@ -964,7 +966,7 @@ Change `readme-template.md` or `examples-to-docs.el` 
instead.
 
 ## Changelist
 
-### From 1.7.0 to master
+### From 1.7.0 to 1.8.0
 
 - Add `-first-item` and `-last-item` (Wilfred Hughes)
 
diff --git a/dev/examples.el b/dev/examples.el
index c382921..907ba6d 100644
--- a/dev/examples.el
+++ b/dev/examples.el
@@ -287,11 +287,11 @@
 
 (defexamples -first-item
   (-first-item '(1 2 3)) => 1
-  (-first-item nil => nil))
+  (-first-item nil) => nil)
 
 (defexamples -last-item
   (-last-item '(1 2 3)) => 3
-  (-last-item nil => nil))
+  (-last-item nil) => nil)
 
 (defexamples -union
   (-union '(1 2 3) '(3 4 5))  => '(1 2 3 4 5)



reply via email to

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