D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2930 - Problems in std.range documentation
Summary: Problems in std.range documentation
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-03 15:02 UTC by Nick Sabalausky
Modified: 2015-06-09 01:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Sabalausky 2009-05-03 15:02:19 UTC
isRandomAccessRange: Inconsistency between description and sample code. The description indicates the criteria for random-access is "forward or infinite", but the sample code indicates the criteria is "forward and (bidirectional or infinite)".

advance: "The pass of r into drop is by reference..." 'drop' should be 'advance' (or maybe the other way around?)

retreatN: "The pass of r into advanceRight is by reference..." 'advanceRight' should be 'retreatN' (or maybe the other way around?)
Comment 1 Andrei Alexandrescu 2010-09-26 15:29:04 UTC
http://www.dsource.org/projects/phobos/changeset/2062