Keep variable name consistency

This commit is contained in:
f440
2015-11-23 18:02:57 +09:00
parent 71d146b2b2
commit e7aff408a7
5 changed files with 12 additions and 12 deletions

View File

@@ -142,7 +142,7 @@ mはつの型を持つことのできるオブジェクトなので、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はつの型を持つことのできるオブジェクトなので、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")