{"push_id":2137966663,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"5f29a7a705e706e307653db47c03df6dbbaf47bc","before":"436f2d8d974954ef052f1b71c751df713704ab00","commits":[{"sha":"5f29a7a705e706e307653db47c03df6dbbaf47bc","author":{"name":"Emmanuel Odeke","email":"9698d2678cf6e25d4a37a65698435b69b9bf58da@gmail.com"},"message":"cmd/compile: hint on wrong case-field names in composite literals\n\nImprove the error message for wrong\ncase-field names in composite literals,\nby mentioning the correct field name.\n\nGiven the program:\npackage main\n\ntype it struct {\n        ID string\n}\n\nfunc main() {\n        i1 := &it{id: \"Bar\"}\n}\n\njust like we do for usage of fields, we now\nreport wrongly cased fields as hints to give:\n\nts.go:8:14: unknown field 'id' in struct literal of type it (but does have ID)\n\ninstead of before:\n\nts.go:8:14: unknown field 'id' in struct literal of type it\n\nFixes #22794\n\nChange-Id: I18cd70e75817025cb1df083503cae306e8d659fd\nReviewed-on: https://go-review.googlesource.com/78545\nRun-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>\nTryBot-Result: Gobot Gobot <gobot@golang.org>\nReviewed-by: Matthew Dempsky <mdempsky@google.com>","distinct":true,"url":"https://api.github.com/repos/golang/go/commits/5f29a7a705e706e307653db47c03df6dbbaf47bc"}]}
{"actor":{"display_login":"gopherbot"}}