Update docs.md

pull/7472/head
Alexander Medvednikov 2020-12-22 16:19:55 +01:00 committed by GitHub
parent e3521555a3
commit f09180224f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -129,9 +129,9 @@ See `v help` for all supported commands.
From the example above, you can see that functions are declared with the `fn` keyword. From the example above, you can see that functions are declared with the `fn` keyword.
The return type is specified after the function name. The return type is specified after the function name.
In this case `main` doesn't return anything, so there is now return type. In this case `main` doesn't return anything, so there is no return type.
As in many other languages (such as C, Go and Rust), `main` is the entry point of your program. As in many other languages (such as C, Go, and Rust), `main` is the entry point of your program.
`println` is one of the few built-in functions. `println` is one of the few built-in functions.
It prints the value passed to it to standard output. It prints the value passed to it to standard output.