Update on Int type example
Although int32 has a longer length than int8, and has the same type as int
This commit is contained in:
@@ -103,7 +103,7 @@ One important thing you should know that you cannot assign values between these
|
||||
|
||||
c := a + b
|
||||
|
||||
Although int has a longer length than uint8, and has the same length as int32, you cannot assign values between them. ( ***c will be asserted as type `int` here*** )
|
||||
Although int32 has a longer length than int8, and has the same type as int, you cannot assign values between them. ( ***c will be asserted as type `int` here*** )
|
||||
|
||||
Float types have the `float32` and `float64` types and no type called `float`. The latter one is the default type if using brief statement.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user