all: replace generic <> with [] - part 2 (#16536)

This commit is contained in:
yuyi 2022-11-27 00:23:26 +08:00 committed by GitHub
parent b19b97e7b1
commit ef5be22f81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
297 changed files with 1959 additions and 1943 deletions

View file

@ -11,7 +11,7 @@ struct Story {
}
fn worker_fetch(mut p pool.PoolProcessor, cursor int, worker_id int) voidptr {
id := p.get_item<int>(cursor)
id := p.get_item[int](cursor)
resp := http.get('https://hacker-news.firebaseio.com/v0/item/${id}.json') or {
println('failed to fetch data from /v0/item/${id}.json')
return pool.no_result