From c363c11e2007df82e27fbd2f476c39c43865c9da Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 14 Jul 2020 11:38:40 +0300 Subject: [PATCH] doc: fix `type of int` => `type int` --- doc/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index ad01bcfc55..5c2d8886db 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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: