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:
@ -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
|
||||
|
Reference in New Issue
Block a user