drop-last docstring refers to 'coll' but args refer to 's'

Description

The doc-string for drop-last refers to coll, but the arguments are named n and s, rather than coll.

user=> (doc drop-last) ------------------------- clojure.core/drop-last ([s] [n s]) Return a lazy sequence of all but the last n (default 1) items in coll nil user=> (source drop-last) (defn drop-last "Return a lazy sequence of all but the last n (default 1) items in coll" {:added "1.0" :static true} ([s] (drop-last 1 s)) ([n s] (map (fn [x _] x) s (drop n s)))) nil

Environment

None

Attachments

1
  • 20 Oct 2015, 03:39 PM

Activity

Show:

Alex MillerOctober 20, 2015 at 3:51 PM

Thanks, looks good. This won't make it in 1.8 but we will look at it in the next release.

李彥瑾(coldnew)October 20, 2015 at 3:39 PM

Patch based on current master. (f76b343d)

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code

Priority

Affects versions

Fix versions

Created October 13, 2015 at 2:13 PM
Updated September 7, 2017 at 8:46 PM
Resolved September 7, 2017 at 8:46 PM