v2 / cmd / tools / vdoc / testdata / run_examples_good / main.comments.out
5 lines · 4 sloc · 230 bytes · 8eaaba6094456bb21833fddf20d22514e7dadcb2
Raw
1module main
2
3fn abc()
4 abc just prints 'xyz'. The important thing however is the next line, that does an assertion, that should be executed with `v doc -run-examples good.v`, and should succeed:
5 Example: assert 5 * 5 == 25
6