mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
10 lines
252 B
V
10 lines
252 B
V
// abc just prints 'xyz'. The important thing however is the next line, that does an assertion,
|
|
// that should FAIL to be executed with `v doc -run-examples good.v`:
|
|
// Example: assert 5 * 5 == 77
|
|
pub fn abc() {
|
|
println('xyz')
|
|
}
|
|
|
|
fn main() {
|
|
abc()
|
|
}
|