# langref.html.in: Simplify printing types in examples · gitcafe/zig

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

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

Visibility: public

Requested revision: 1be11e230a453700bcf8cd0d75e0dd7c3a30c2f0

Requested commit: 1be11e230a453700bcf8cd0d75e0dd7c3a30c2f0

Commit: 1be11e230a453700bcf8cd0d75e0dd7c3a30c2f0

Tree: 3c70f336119f132980fa83ef2fd93e2858258793

Author: Ganesan Rajagopal

Committer: Andrew Kelley

## Message

```
langref.html.in: Simplify printing types in examples

zig stdlib fmt has a formatter for types which prints the type name.  So,
just use @TypeOf(type) instead of the longer @typeInfo(@TypeOf(type)).

```

## Parents

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

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