Bug 6826 – stdio.File.readf docs incorrect

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-10-18T09:06:00Z
Last change time
2012-02-25T13:10:50Z
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2011-10-18T09:06:28Z
The docs for readf() say: Formatted read one line from stdin. However, this function doesn't read a whole line as the text implies. Or at least I hope it doesn't. It would be better to say it extracts characters from the file using format.readFormatted().
Comment #1 by jlquinn — 2011-10-18T11:47:35Z
Also, I assume the return value is the one generated by readFormatted(), but it should be explicitly stated.
Comment #2 by hsteoh — 2012-02-24T21:26:43Z