Bug 17671 – std.format example is not compiles

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-07-20T07:55:00Z
Last change time
2017-07-20T11:48:42Z
Assigned to
nobody
Creator
goldmax3000

Comments

Comment #0 by goldmax3000 — 2017-07-20T07:55:27Z
The simple example (run on dlang site) writeln(format("%,d", 1000)); gives error: std.format.FormatException@/dlang/dmd/linux/bin64/../../src/phobos/std/format.d(1744): integral
Comment #1 by greensunny12 — 2017-07-20T11:48:42Z
Thanks a lot for reporting this issue. We do have a pipeline in place, s.t. all runnable examples are automatically checked: http://dlang.org/blog/2017/03/08/editable-and-runnable-doc-examples-on-dlang-org However, in this case the example changed from 2.074.0 to 2.075.0 as a new feature ws introduced and the daily cron to update the backend didn't run yet. I manually updated it now and everything works again: Run the example: https://is.gd/b3UxtJ See the change that introduced it for 2.075.0: https://github.com/dlang/phobos/commit/cc8eff102f4ddcf15c4def1a5b87786c3040689d