docs: minor fixes

pull/4852/head^2
Alexander Medvednikov 2020-05-11 20:21:41 +02:00 committed by GitHub
parent 649a0140fd
commit 0a89aa0044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -15,7 +15,7 @@ Despite being simple, V gives the developer a lot of power. Anything you can do
you can do in V. you can do in V.
## Table of Contents ## Table of Contents
<ol>
<table> <table>
<tr> <tr>
<td><a href='#hello-world'>1. Hello world</a></td> <td><a href='#hello-world'>1. Hello world</a></td>
@ -80,7 +80,7 @@ you can do in V.
<td><a href='appendix-ii-keywords'>Appendix II: Operators</a></td> <td><a href='appendix-ii-keywords'>Appendix II: Operators</a></td>
</tr> </tr>
</table> </table>
</ol>
## Hello World ## Hello World
@ -161,9 +161,9 @@ println(b) // 3
``` ```
Functions can return multiple values. Functions can return multiple values.
Like constants and types, functions are private (not exported) by default.
To allow other modules to use them, prepend `pub`. The same applies <p>&nbsp;</p>
to constants and types.
```v ```v
pub fn public_function() { pub fn public_function() {
@ -173,6 +173,10 @@ fn private_function() {
} }
``` ```
Like constants and types, functions are private (not exported) by default.
To allow other modules to use them, prepend `pub`. The same applies
to constants and types.
## Constants & variables ## Constants & variables
```v ```v