Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v
/
cmd
/
tools
/
vdoc
/
testdata
/
run_examples_good
/
main.comments.out
5
lines
·
4
sloc
·
230 bytes
·
8eaaba6094456bb21833fddf20d22514e7dadcb2
Raw
1
module main
2
3
fn 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