diff --git a/doc/docs.md b/doc/docs.md index 55106007d7..0d50f9d907 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -18,12 +18,12 @@ you can do in V.
1. Hello world | -2. Comments | -3. Functions | -4. Variables | -5. Primitive types | -6. Strings | +1. Hello world | +2. Comments | +3. Functions | +4. Variables | +5. Primitive types | +6. Strings |
7. Imports | @@ -39,7 +39,7 @@ you can do in V.Access modifiers | Methods | Pure functions by default | -Anonymous & high order functions | +Anonymous & high order fns | ||||||
References | @@ -51,7 +51,7 @@ you can do in V.|||||||||||
Sum types | -Option/Result & error handling | +Option/Result & error handling | Generics | Concurrency | Decoding JSON | @@ -177,7 +177,7 @@ 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 +## Variables ```v name := 'Bob' @@ -200,6 +200,8 @@ type `T`. Unlike most other languages, V only allows defining variables in functions. Global (module level) variables are not allowed. There's no global state in V. +