From b5de19dc0323317b6280c230b5a7e5a81b9a6c80 Mon Sep 17 00:00:00 2001 From: Steve Phillips Date: Wed, 29 Jul 2020 10:11:08 -0700 Subject: [PATCH] examples/concurrency: cleanup (#6018) --- examples/concurrency/concurrency_http.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/concurrency/concurrency_http.v b/examples/concurrency/concurrency_http.v index 9787a51d64..a62348308e 100644 --- a/examples/concurrency/concurrency_http.v +++ b/examples/concurrency/concurrency_http.v @@ -6,7 +6,7 @@ fn vlang_time(mut wg sync.WaitGroup) ?string { start := time.ticks() data := http.get('https://vlang.io/utc_now')? finish := time.ticks() - println('Finish getting time ${(finish-start)} ms') + println('Finish getting time ${finish - start} ms') println(data.text) wg.done() return data.text @@ -16,7 +16,7 @@ fn remote_ip(mut wg sync.WaitGroup) ?string { start := time.ticks() data := http.get('https://api.ipify.org')? finish := time.ticks() - println('Finish getting ip ${(finish-start)} ms') + println('Finish getting ip ${finish - start} ms') println(data.text) wg.done() return data.text