From d3fcb6bca08714c431fa83510b6c8cfb250d0883 Mon Sep 17 00:00:00 2001 From: kahsa Date: Mon, 24 Oct 2022 23:56:34 +0900 Subject: [PATCH] doc: add a subheading for creating new modules (#16188) --- doc/docs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/docs.md b/doc/docs.md index dfbcc63d7f..d74dfa5686 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -94,6 +94,7 @@ To do so, run the command `v up`. * [Printing custom types](#printing-custom-types) * [Dumping expressions at runtime](#dumping-expressions-at-runtime) * [Modules](#modules) + * [Create modules](#create-modules) * [init functions](#init-functions) * [Type Declarations](#type-declarations) * [Interfaces](#interfaces) @@ -2877,6 +2878,8 @@ the expression itself, and the expression value. Every file in the root of a folder is part of the same module. Simple programs don't need to specify module name, in which case it defaults to 'main'. +### Create modules + V is a very modular language. Creating reusable modules is encouraged and is quite easy to do. To create a new module, create a directory with your module's name containing