Skip to content

Commit

Permalink
Update docs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov authored Dec 22, 2020
1 parent e352155 commit f091802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.
It prints the value passed to it to standard output.
Expand Down

0 comments on commit f091802

Please sign in to comment.