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

vfmt: format all of cmd/ and add it to v test-cleancode (#9418)

This commit is contained in:
Lukas Neubert
2021-03-24 22:37:10 +01:00
committed by GitHub
parent 837cada30c
commit 7664964c56
11 changed files with 68 additions and 43 deletions

View File

@@ -30,7 +30,8 @@ fn main() {
checksum = 0
for len in str_lens {
end_pos := start_pos + len
checksum ^= wyhash.wyhash_c(unsafe { byteptr(bytepile.data) + start_pos }, u64(len), 1)
checksum ^= wyhash.wyhash_c(unsafe { byteptr(bytepile.data) + start_pos }, u64(len),
1)
start_pos = end_pos
}
bhashing_1.measure('wyhash.wyhash_c | checksum: ${checksum:22}')