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