# langref: improve the test_fn_reflection.zig doctest · gitcafe/zig

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

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

Visibility: public

Requested revision: 89a9e927ad97bf1ef5f45a0a004dd2d46390e441

Requested commit: 89a9e927ad97bf1ef5f45a0a004dd2d46390e441

Commit: 89a9e927ad97bf1ef5f45a0a004dd2d46390e441

Tree: f92edbd710b92884e43f1dab502c0bb3fa3ab010

Author: Manlio Perillo

Committer: Andrew Kelley

## Message

```
langref: improve the test_fn_reflection.zig doctest

Currently, the test_fn_reflection.zig doctest has an example of
.Fn.is_var_args.  This example can confuse the reader, since there is no
documentation about variadic functions and is_var_args is mainly used in
the compiler.

Remove the example with .Fn.is_var_args and add instead examples with
.Fn.return_type and .Fn.is_generic.

```

## Parents

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

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