# langref: add information about doctests · gitcafe/zig

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

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

Visibility: public

Requested revision: fdb4eb3056ee85709f8d1af6c11641481de5e653

Requested commit: fdb4eb3056ee85709f8d1af6c11641481de5e653

Commit: fdb4eb3056ee85709f8d1af6c11641481de5e653

Tree: f9293255a38da668b7b710590b8c6fdfabb83bd0

Author: Ian Johnson

Committer: Andrew Kelley

## Message

```
langref: add information about doctests

This creates a section in the language reference about doctests, which
is currently referenced by Autodoc in a tooltip when displaying a
doctest.

Some advice relevant to writing doctests is included, based on the
discussion on #16472.

```

## Parents

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

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