The doc string for vector is incorrect

Description

With CLJ-2362,

`(vec [1 2])`

does not return a new vector.
The doc string of vec says

"Creates a new vector containing the args."

Prescreened by: Alex Miller

Environment

None

Attachments

1

Activity

Show:

Alex Miller September 16, 2021 at 8:08 PM

Upon further review, the docstring is not wrong and should be read in the context of other docstrings in Clojure core such that "new" means "not necessarily the same". That is, you should not assume that it's the "same" vector.

Declined

Details

Assignee

Reporter

Labels

Approval

Prescreened

Patch

Code

Priority

Affects versions

Created September 24, 2018 at 9:51 PM
Updated September 16, 2021 at 8:08 PM
Resolved September 16, 2021 at 8:08 PM