fix: greeeting examples
This commit is contained in:
@ -16,7 +16,7 @@ import (
|
||||
// Since, you didn't learn about the control flow statements yet
|
||||
// I didn't include an error detection here.
|
||||
//
|
||||
// So, if you don't pass a name and a lastname,
|
||||
// So, if you don't pass a name,
|
||||
// this program will fail.
|
||||
// This is intentional.
|
||||
|
||||
@ -28,7 +28,7 @@ func main() {
|
||||
fmt.Println("Hello great", name, "!")
|
||||
|
||||
// changes the name, declares the age with 85
|
||||
name, age := "gandalf", 2019
|
||||
name, age := "gandalf", 85
|
||||
|
||||
fmt.Println("My name is", name)
|
||||
fmt.Println("My age is", age)
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
// Since, you didn't learn about the control flow statements yet
|
||||
// I didn't include an error detection here.
|
||||
//
|
||||
// So, if you don't pass a name and a lastname,
|
||||
// So, if you don't pass a name,
|
||||
// this program will fail.
|
||||
// This is intentional.
|
||||
|
||||
@ -26,7 +26,7 @@ func main() {
|
||||
fmt.Println("Hello great", name, "!")
|
||||
|
||||
// changes the name, declares the age with 85
|
||||
name, age := "gandalf", 2019
|
||||
name, age := "gandalf", 85
|
||||
|
||||
fmt.Println("My name is", name)
|
||||
fmt.Println("My age is", age)
|
||||
|
Reference in New Issue
Block a user