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

@ -1,5 +1,4 @@
// This program displays the fibonacci sequence
import os
fn main() {
@ -10,7 +9,7 @@ fn main() {
// Exit
return
}
// Parse first argument and cast it to int
stop := os.args[1].int()
@ -25,7 +24,7 @@ fn main() {
mut b := u64(0)
mut c := u64(1)
for _ in 0..stop {
for _ in 0 .. stop {
// Set a and b to the next term
a = b
b = c