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

all: use a !in b instead of !(a in b)

This commit is contained in:
yuyi
2020-04-26 12:39:23 +08:00
committed by GitHub
parent 2b4ac0e63a
commit 541b058e90
19 changed files with 70 additions and 70 deletions

View File

@ -18,7 +18,7 @@ fn test_crypto_rand_read() {
return
}
assert r2.len == no_bytes
mut difference := 0
for i, _ in r1 {
difference += if r1[i] == r2[i] {0} else {1}
@ -42,7 +42,7 @@ fn test_crypto_rand_int_u64() {
return
}
n := int(r)
if !(n in unique) {
if n !in unique {
unique << n
}
}