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

fmt: fix unnecessary line break in array init (fix #11448) (#11562)

This commit is contained in:
yuyi
2021-09-21 21:20:09 +08:00
committed by GitHub
parent d6fa6a459c
commit 108a01d65f
47 changed files with 532 additions and 518 deletions

View File

@ -105,8 +105,7 @@ fn test_mode() {
mut o := stats.mode(data)
assert o == f64(2.7)
data = [f64(-3.0), f64(1.89), f64(1.89), f64(1.89), f64(9), f64(4.4), f64(4.4), f64(9),
f64(67.31),
]
f64(67.31)]
o = stats.mode(data)
assert o == f64(1.89)
// Testing greedy nature