Bug 2118 – Inconsistent use of string vs invariant(char[]) in doc
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-05-20T13:40:00Z
Last change time
2015-06-09T01:21:34Z
Assigned to
bugzilla
Creator
jlquinn
Comments
Comment #0 by jlquinn — 2008-05-20T13:40:49Z
The docs for the full constructor use "string" in the prototype, but invariant(char[]) in the parameter description. I think it should use the same thing in both cases to be cleaner and easier to use even though they are semantically identical. My preference is "string". but the consistency is more important.
this(string filename, Mode mode, ulong size, void* address, size_t window = 0);
Open memory mapped file filename in mode. File is closed when the object instance is deleted.
Params:
invariant(char)[] filename name of the file.