From fbfbeb3aa21cc236d6fdb521a5a340003f8ed73c Mon Sep 17 00:00:00 2001 From: Puru <40428133+tuladhar-p@users.noreply.github.com> Date: Thu, 17 Jan 2019 10:30:32 +0545 Subject: [PATCH] Fix syntax according to comment This commit fixes the syntax to match what's being said in the comment. --- variablestypes/variables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variablestypes/variables.go b/variablestypes/variables.go index 5a8b4ab..cffc2ec 100644 --- a/variablestypes/variables.go +++ b/variablestypes/variables.go @@ -28,7 +28,7 @@ func main() { var y int //Declare and set value, let the compiler work out the type - var z int = 2 + var z = 2 // fmt.Printf is Go's standard print function. The %T verb allows you to print the type of a variable fmt.Printf("%T %T %T %T\n", x, n, y, z)