Bug 10660 – ddoc on std.algorithm: Cheat sheet description for 'filter' is wrong

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-17T01:46:00Z
Last change time
2013-07-21T06:59:00Z
Keywords
pull
Assigned to
nobody
Creator
peterneubauer2

Comments

Comment #0 by peterneubauer2 — 2013-07-17T01:46:45Z
http://dlang.org/phobos/std_algorithm.html describes filter like this: filter!"a > 0"([1, -1, 2, 0, -3]) iterates over elements 1, 2, and 0. Actually, 0 is not greater than 0 and the result will be just 1, 2.
Comment #1 by hsteoh — 2013-07-19T08:15:56Z
Comment #2 by github-bugzilla — 2013-07-21T05:44:53Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/e9e43e09ed2cc98f88f7492782b694ffb1823cad Merge pull request #1422 from quickfur/filter_docs Fix issue 10660.