1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

doc: fix Modules position in contents (#8722)

This commit is contained in:
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

View File

@ -91,10 +91,10 @@ For more details and troubleshooting, please visit the [vab GitHub repository](h
* [Mutable arguments](#mutable-arguments) * [Mutable arguments](#mutable-arguments)
* [Anonymous & high order functions](#anonymous--high-order-functions) * [Anonymous & high order functions](#anonymous--high-order-functions)
* [References](#references) * [References](#references)
* [Modules](#modules)
* [Constants](#constants) * [Constants](#constants)
* [Builtin functions](#builtin-functions) * [Builtin functions](#builtin-functions)
* [Printing custom types](#custom-print-of-types) * [Printing custom types](#printing-custom-types)
* [Modules](#modules)
* [Types 2](#types-2) * [Types 2](#types-2)
* [Interfaces](#interfaces) * [Interfaces](#interfaces)
* [Enums](#enums) * [Enums](#enums)
@ -1876,7 +1876,9 @@ println([1, 2, 3]) // "[1, 2, 3]"
println(User{ name: 'Bob', age: 20 }) // "User{name:'Bob', age:20}" 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 If you want to define a custom print value for your type, simply define a
`.str() string` method: `.str() string` method: