doc: fix Modules position in contents (#8722)

pull/8678/head
Nick Treleaven 2021-02-13 14:57:51 +00:00 committed by GitHub
parent 99270c6935
commit 4ef3a21c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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
<a id='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: