docs: minor fixes
parent
649a0140fd
commit
0a89aa0044
14
doc/docs.md
14
doc/docs.md
|
@ -15,7 +15,7 @@ Despite being simple, V gives the developer a lot of power. Anything you can do
|
|||
you can do in V.
|
||||
|
||||
## Table of Contents
|
||||
<ol>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
## Hello World
|
||||
|
@ -161,9 +161,9 @@ println(b) // 3
|
|||
```
|
||||
|
||||
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
|
||||
to constants and types.
|
||||
|
||||
<p> </p>
|
||||
|
||||
|
||||
```v
|
||||
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
|
||||
|
||||
```v
|
||||
|
|
Loading…
Reference in New Issue