Skip to content

Commit

Permalink
Fix a typo in Go basics page (#800)
Browse files Browse the repository at this point in the history
Fix a typo -- there is no Read() call, as the document says
  • Loading branch information
andreybokhanko authored Jul 12, 2021
1 parent 7dde099 commit 873ac84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/languages/go/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (s *routeGuideServer) RecordRoute(stream pb.RouteGuide_RecordRouteServer) e
In the method body we use the `RouteGuide_RecordRouteServer`'s `Recv()` method
to repeatedly read in our client's requests to a request object (in this case a
`Point`) until there are no more messages: the server needs to check the error
returned from `Read()` after each call. If this is `nil`, the stream is still
returned from `Recv()` after each call. If this is `nil`, the stream is still
good and it can continue reading; if it's `io.EOF` the message stream has ended
and the server can return its `RouteSummary`. If it has any other value, we
return the error "as is" so that it'll be translated to an RPC status by the
Expand Down

0 comments on commit 873ac84

Please sign in to comment.