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

doc: minor clean up

This commit is contained in:
Alexander Medvednikov 2020-05-31 11:12:37 +02:00 committed by GitHub
parent f87e872fa2
commit bfb926a544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,14 +93,14 @@ fn main() {
```
Save that snippet into a file `hello.v` . Now do: `v run hello.v` .
(That is assuming you have symlinked your V with `v symlink`, as described here
[Symlinking](https://github.com/vlang/v/blob/master/README.md#symlinking).
If you have not yet, you have to type the path to v/v.exe manually.)
> That is assuming you have symlinked your V with `v symlink`, as described
[here](https://github.com/vlang/v/blob/master/README.md#symlinking).
If you have not yet, you have to type the path to V manually.
Congratulations - you just wrote your first V program, and executed it!
(You can compile a program without execution, with: `v hello.v`.
See `v help` for all supported commands)
> You can compile a program without execution with `v hello.v`.
See `v help` for all supported commands.
In the above example, you can see that functions are declared with `fn`.
The return type goes after the function name. In this case `main` doesn't