phobos/changelog/deprecate_formatElement.dd
2021-03-25 10:17:21 +01:00

12 lines
295 B
Text

Deprecate std.format : formatElement
`formatElement` from `std.format` has been accidentally made public and
will be removed from public view in 2.107.0.
Please use instead of `formatElement(sink, value, fmt)`:
```
import std.range : only;
sink.put(format!("%("~fmt~"%)")(only(value)));
```