# std.zig: fmtId returns a FormatId · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e12dc4947c411d25c4c56d887e62d0e2b9addcb8)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e12dc4947c411d25c4c56d887e62d0e2b9addcb8

Requested commit: e12dc4947c411d25c4c56d887e62d0e2b9addcb8

Commit: e12dc4947c411d25c4c56d887e62d0e2b9addcb8

Tree: e73d52a1bac71cbaa710951f6c04caa3dde4e457

Author: A cursed quail

Committer: Andrew Kelley

## Message

```
std.zig: fmtId returns a FormatId

Changes fmtId to return the FormatId type directly, and renames the
FormatId.render function to FormatId.format, so it can be used in a
format expression directly.

Why? Since `render` is private, you can't create functions that wrap
`fmtId` or `fmtIdFlags`, since you can't name the return type of those
functions outside of std itself.

The current setup _might_ be intentional? In which case I can live with
it, but I figured I'd make a small contrib to upstream zig :)

```

## Parents

- [04614d6ea17fff69ead42223c35a257da25462de](https://git.cafe/gitcafe/zig/commit/04614d6ea17fff69ead42223c35a257da25462de?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e12dc4947c411d25c4c56d887e62d0e2b9addcb8?format=markdown)
