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

fmt: keep same line comments after arr.sort() in vsh files (#8026)

This commit is contained in:
Lukas Neubert
2021-01-13 19:10:17 +01:00
committed by GitHub
parent 2030875c0a
commit 8a8978fb01
4 changed files with 7 additions and 2 deletions

View File

@ -689,7 +689,7 @@ println(a) // [[[0, 0], [0, 2], [0, 0]], [[0, 0], [0, 0], [0, 0]]]
Sorting arrays of all kinds is very simple and intuitive. Special variables `a` and `b`
are used when providing a custom sorting condition.
```v nofmt
```v
mut numbers := [1, 3, 2]
numbers.sort() // 1, 2, 3
numbers.sort(a > b) // 3, 2, 1