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

Update docs.md

This commit is contained in:
Alexander Medvednikov 2020-12-22 16:19:32 +01:00 committed by GitHub
parent d0fe96da39
commit e3521555a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ See `v help` for all supported commands.
From the example above, you can see that functions are declared with the `fn` keyword.
The return type is specified after the function name.
In this case `main` doesn't return anything, so the return type can be omitted.
In this case `main` doesn't return anything, so there is now return type.
As in many other languages (such as C, Go and Rust), `main` is the entry point of your program.