1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: don't require unary > prefix for select timeout (#10928)

This commit is contained in:
Uwe Krüger
2021-07-23 22:24:27 +02:00
committed by GitHub
parent 1999850f88
commit 1e5627e777
17 changed files with 65 additions and 56 deletions

View File

@ -3350,7 +3350,7 @@ fn main() {
time.sleep(5 * time.millisecond)
eprintln('> c: $c was send on channel ch3')
}
> 500 * time.millisecond {
500 * time.millisecond {
// do something if no channel has become ready within 0.5s
eprintln('> more than 0.5s passed without a channel being ready')
}