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:
@@ -99,7 +99,7 @@ fn example_with_deadline() {
|
||||
ctx_ch := ctx.done()
|
||||
select {
|
||||
_ := <-ctx_ch {}
|
||||
> 1 * time.second {
|
||||
1 * time.second {
|
||||
panic('This should not happen')
|
||||
}
|
||||
}
|
||||
@@ -130,7 +130,7 @@ fn example_with_timeout() {
|
||||
ctx_ch := ctx.done()
|
||||
select {
|
||||
_ := <-ctx_ch {}
|
||||
> 1 * time.second {
|
||||
1 * time.second {
|
||||
panic('This should not happen')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user