From 0a89aa004409e2185dd7d07c4934ad004e9ea785 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 11 May 2020 20:21:41 +0200 Subject: [PATCH] docs: minor fixes --- doc/docs.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index a8e1cdaf99..55106007d7 100644 --- a/doc/docs.md +++ b/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 -
    + @@ -80,7 +80,7 @@ you can do in V.
    1. Hello worldAppendix II: Operators
    -
+ ## 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. + +

 

+ ```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