example: fix typo for grpc (#1405)

sorry...fixed #1403
This commit is contained in:
田欧 2018-06-22 23:44:45 +08:00 committed by Bo-Yi Wu
parent 737d2fb7ab
commit 605aa1c30f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func main() {
// Contact the server and print out its response.
req := &pb.HelloRequest{Name: name}
res, err := client.SayHello(g, req)
res, err := client.SayHello(c, req)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"error": err.Error(),