mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
all: change single blank comment to blank line (#22016)
This commit is contained in:
parent
793b66d8d5
commit
19f080ffb8
147 changed files with 319 additions and 339 deletions
|
@ -3,7 +3,7 @@ const a = [4, 5, 1, 2, 5, 9]
|
|||
fn test_map() {
|
||||
assert a.map(it) == a
|
||||
assert a.map(it * 10) == [40, 50, 10, 20, 50, 90]
|
||||
//
|
||||
|
||||
assert a.map(|x| x) == a
|
||||
assert a.map(|x| x * 10) == [40, 50, 10, 20, 50, 90]
|
||||
assert a.map(|x| 'x: ${x}') == ['x: 4', 'x: 5', 'x: 1', 'x: 2', 'x: 5', 'x: 9']
|
||||
|
@ -13,7 +13,7 @@ fn test_map() {
|
|||
fn test_filter() {
|
||||
assert a.filter(it > 4) == [5, 5, 9]
|
||||
assert a.filter(it < 4) == [1, 2]
|
||||
//
|
||||
|
||||
assert a.filter(|x| x > 4) == [5, 5, 9]
|
||||
assert a.filter(|x| x < 4) == [1, 2]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue