Skip to content

tour: [The expression T(v) converts the value v to the type T.] #1624

Open
@mayank5464942

Description

@mayank5464942

Context: https://go.dev/tour/basics/13

"The expression T(v) converts the value v to the type T."

The above statement wrongly interprets the expression.
should'nt it be meant more as if
var a float64 = 5.3;
var b int32=int32(a);
now here the value of "a" does not change to int32 instead the assigned variable b gets the change in datatype value of a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions