Thread overview
[Issue 10660] New: ddoc on std.algorithm: Cheat sheet description for 'filter' is wrong
Jul 17, 2013
Peter Neubauer
Jul 21, 2013
Kenji Hara
July 17, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10660

           Summary: ddoc on std.algorithm: Cheat sheet description for
                    'filter' is wrong
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: peterneubauer2@gmail.com


--- Comment #0 from Peter Neubauer <peterneubauer2@gmail.com> 2013-07-17 01:46:45 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10660


hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |hsteoh@quickfur.ath.cx


--- Comment #1 from hsteoh@quickfur.ath.cx 2013-07-19 08:15:56 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1422

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10660



--- Comment #2 from github-bugzilla@puremagic.com 2013-07-21 05:44:53 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 21, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10660


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------