From 4ef3a21c8a5fece01b86b54f4dddb5976d1579ab Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Sat, 13 Feb 2021 14:57:51 +0000 Subject: [PATCH] doc: fix Modules position in contents (#8722) --- doc/docs.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 5a1a0d4d00..73e4fc6637 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -91,10 +91,10 @@ For more details and troubleshooting, please visit the [vab GitHub repository](h * [Mutable arguments](#mutable-arguments) * [Anonymous & high order functions](#anonymous--high-order-functions) * [References](#references) -* [Modules](#modules) * [Constants](#constants) * [Builtin functions](#builtin-functions) -* [Printing custom types](#custom-print-of-types) +* [Printing custom types](#printing-custom-types) +* [Modules](#modules) * [Types 2](#types-2) * [Interfaces](#interfaces) * [Enums](#enums) @@ -1876,7 +1876,9 @@ println([1, 2, 3]) // "[1, 2, 3]" println(User{ name: 'Bob', age: 20 }) // "User{name:'Bob', age:20}" ``` -## Custom print of types + + +## Printing custom types If you want to define a custom print value for your type, simply define a `.str() string` method: