Fix typos in comments

This commit is contained in:
Daniel Wang
2015-02-25 15:10:15 -08:00
parent a4b32d7c6c
commit 401343c0dc
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Description
The route guide server and client demonstrates how to use grpc go libraries to
The route guide server and client demonstrate how to use grpc go libraries to
perform unary, client streaming, server streaming and full duplex RPCs.
See the definition of the route guide service in proto/route_guide.proto.

View File

@ -31,7 +31,7 @@
*
*/
// Package main implements a simple grpc client that demonstrates how to use grpc go libraries
// Package main implements a simple gRPC client that demonstrates how to use gRPC-Go libraries
// to perform unary, client streaming, server streaming and full duplex RPCs.
//
// It interacts with the route guide service whose definition can be found in proto/route_guide.proto.
@ -127,13 +127,13 @@ func runRouteChat(client pb.RouteGuideClient) {
if err != nil {
log.Fatalf("%v.RouteChat(_) = _, %v", client, err)
}
waitc := make(chan int)
waitc := make(chan struct{})
go func() {
for {
in, err := stream.Recv()
if err == io.EOF {
// read done.
waitc <- 1
close(waitc)
return
}
if err != nil {

View File

@ -31,7 +31,7 @@
*
*/
// Package main implements a simple grpc server that demonstrates how to use grpc go libraries
// Package main implements a simple gRPC server that demonstrates how to use gRPC-Go libraries
// to perform unary, client streaming, server streaming and full duplex RPCs.
//
// It implements the route guide service whose definition can be found in proto/route_guide.proto.