doc: fix titles (#7590)
parent
cf441091f1
commit
954580f8ca
|
@ -48,7 +48,6 @@ Anything you can do in other languages, you can do in V.
|
||||||
|
|
||||||
</td><td width=33% valign=top>
|
</td><td width=33% valign=top>
|
||||||
|
|
||||||
* [println and other builtin functions](#println-and-other-builtin-functions)
|
|
||||||
* [Functions 2](#functions-2)
|
* [Functions 2](#functions-2)
|
||||||
* [Pure functions by default](#pure-functions-by-default)
|
* [Pure functions by default](#pure-functions-by-default)
|
||||||
* [Mutable arguments](#mutable-arguments)
|
* [Mutable arguments](#mutable-arguments)
|
||||||
|
@ -56,6 +55,8 @@ Anything you can do in other languages, you can do in V.
|
||||||
* [References](#references)
|
* [References](#references)
|
||||||
* [Modules](#modules)
|
* [Modules](#modules)
|
||||||
* [Constants](#constants)
|
* [Constants](#constants)
|
||||||
|
* [Builtin functions](#builtin-functions)
|
||||||
|
* [Printing custom types](#printing-custom-types)
|
||||||
* [Types 2](#types-2)
|
* [Types 2](#types-2)
|
||||||
* [Interfaces](#interfaces)
|
* [Interfaces](#interfaces)
|
||||||
* [Enums](#enums)
|
* [Enums](#enums)
|
||||||
|
@ -1646,6 +1647,8 @@ 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
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue