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

vfmt: vfmt examples/*.v

This commit is contained in:
Delyan Angelov
2021-02-23 19:43:44 +02:00
parent 0fa2f6d52c
commit 9e06af8bf9
18 changed files with 191 additions and 162 deletions

View File

@ -14,10 +14,10 @@ fn main() {
fn sleeping_line(x int, y int, size int, ch string) {
mut i := 0
for i < size {
term.set_cursor_position({
term.set_cursor_position(
x: x + i
y: y
})
)
print(term.bold(term.yellow(ch)))
i++
}
@ -26,10 +26,10 @@ fn sleeping_line(x int, y int, size int, ch string) {
fn standing_line(x int, y int, size int, ch string) {
mut i := 0
for i < size {
term.set_cursor_position({
term.set_cursor_position(
x: x
y: y + i
})
)
print(term.bold(term.yellow(ch)))
i++
}