From 4885b815f42a64ecff0fbcd1ca0116dd154db855 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 6 May 2024 11:55:52 +0300 Subject: [PATCH] docs: fix typo, force regeneration of docs.vlang.io --- doc/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index f7088e1f8a..038dd2b748 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -60,7 +60,7 @@ by using any of the following commands in a terminal: * [Running a project folder](#running-a-project-folder-with-several-files) * [Comments](#comments) * [Functions](#functions) - * [Hoistings](#hoistings) + * [Hoisting](#hoisting) * [Returning multiple values](#returning-multiple-values) * [Symbol visibility](#symbol-visibility) * [Variables](#variables) @@ -340,7 +340,7 @@ Again, the type comes after the argument's name. Just like in Go and C, functions cannot be overloaded. This simplifies the code and improves maintainability and readability. -### Hoistings +### Hoisting Functions can be used before their declaration: `add` and `sub` are declared after `main`, but can still be called from `main`.