mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: deprecate short struct init (#10842)
This commit is contained in:
@@ -48,7 +48,7 @@ fn init(mut app App) {
|
||||
|
||||
// worker simulates a workload. This should be run in a separate thread.
|
||||
fn worker(mut app App) {
|
||||
stopwatch := time.new_stopwatch({})
|
||||
stopwatch := time.new_stopwatch()
|
||||
mut elapsed := stopwatch.elapsed()
|
||||
// Do heavy operations here - like invoking a path finding algorithm, load an image or similar.
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user