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

doc: fix type of int => type int

This commit is contained in:
Delyan Angelov 2020-07-14 11:38:40 +03:00
parent 3703ade9f1
commit c363c11e20

View File

@ -389,7 +389,7 @@ println(s) // "hello\nworld"
a := 123
```
This will assign the value of 123 to `a`. By default `a` will have the
type of `int`.
type `int`.
You can also use hexadecimal notation for integer literals:
```v
@ -405,7 +405,7 @@ a := 0o173
```
All of these will assign the same value 123 to `a`. `a` will have the
type of `int` no matter what notation you have used for the integer literal.
type `int` no matter what notation you have used for the integer literal.
If you want a different type of integer, you can use casting: