D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 469 - Incorrect documentation in std.date
Summary: Incorrect documentation in std.date
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 major
Assignee: Walter Bright
URL: http://www.digitalmars.com/d/phobos/s...
Keywords: ddoc
Depends on:
Blocks:
 
Reported: 2006-10-28 08:01 UTC by Matti Niemenmaa
Modified: 2020-03-09 09:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Matti Niemenmaa 2006-10-28 08:01:28 UTC
I haven't used DDoc at all, so I don't know whether this is a problem with DDoc or just the documentation in the source of std.date.

The problem is that within the documentation for struct Date, "int weekday" has "0: not specified" and nothing else, while it should have the "1..7: Sunday..Saturday" which, for some reason, is under "int tzcorrection".

Severity set to major since the documentation output is plainly incorrect.
Comment 1 Matti Niemenmaa 2006-11-15 02:41:43 UTC
Fixed for DMD 0.174.
Comment 2 Dlang Bot 2020-03-09 09:03:25 UTC
dlang-community/dfmt pull request #470 "Fix Issue #469" was merged into master:

- fbd8559ceb0caf46a7503e3fca973064713ad599 by Hackerpilot:
  Test case for issue 469

https://github.com/dlang-community/dfmt/pull/470