[Issue 19596] New: Docs on .walkLength are wrong
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 19 16:12:58 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19596
Issue ID: 19596
Summary: Docs on .walkLength are wrong
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: porton at narod.ru
https://dlang.org/phobos/std_range_primitives.html#walkLength
"This is a best-effort implementation of length for any kind of range."
This statement from the docs is not true.
walkLength (and probably some other functions) do not work for a range with
@disable'd copy constructor. So it is not "for any kind of range" as claimed in
the docs.
Correct either the code to conform the docs or the docs.
--
More information about the Digitalmars-d-bugs
mailing list