Bug 5836 – std.typetuple.staticIndexOf's example code missing %s in call to writefln
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-04-11T13:24:00Z
Last change time
2011-07-11T08:22:13Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2011-04-11T13:24:29Z
Example code is:
writefln("The index of long is ",
staticIndexOf!(long, TypeTuple!(int, long, double)));
Should be:
writefln("The index of long is %s",
staticIndexOf!(long, TypeTuple!(int, long, double)));
Comment #1 by kennytm — 2011-04-11T13:35:05Z
Or change writefln to writeln.
Comment #2 by andrej.mitrovich — 2011-07-11T08:22:13Z