Keep variable name consistency
This commit is contained in:
@@ -142,7 +142,7 @@ mは3つの型を持つことのできるオブジェクトなので、Men型
|
||||
mike := Student{Human{"Mike", 25, "222-222-XXX"}, "MIT", 0.00}
|
||||
paul := Student{Human{"Paul", 26, "111-222-XXX"}, "Harvard", 100}
|
||||
sam := Employee{Human{"Sam", 36, "444-222-XXX"}, "Golang Inc.", 1000}
|
||||
Tom := Employee{Human{"Tom", 37, "222-444-XXX"}, "Things Ltd.", 5000}
|
||||
tom := Employee{Human{"Tom", 37, "222-444-XXX"}, "Things Ltd.", 5000}
|
||||
|
||||
//Men型の変数iを定義します。
|
||||
var i Men
|
||||
@@ -154,7 +154,7 @@ mは3つの型を持つことのできるオブジェクトなので、Men型
|
||||
i.Sing("November rain")
|
||||
|
||||
//iにはEmployeeを保存することもできます。
|
||||
i = Tom
|
||||
i = tom
|
||||
fmt.Println("This is Tom, an Employee:")
|
||||
i.SayHi()
|
||||
i.Sing("Born to be wild")
|
||||
|
||||
Reference in New Issue
Block a user