Browse Source

Merge pull request #946 from yujinqiu/fix-typo

Fix receivced, InboundBound, tranport typo
DarienRaymond 7 years ago
parent
commit
5eac607087
2 changed files with 4 additions and 4 deletions
  1. 1 1
      common/net/destination.go
  2. 3 3
      transport/ray/ray.go

+ 1 - 1
common/net/destination.go

@@ -56,7 +56,7 @@ func (d Destination) IsValid() bool {
 	return d.Network != Network_Unknown
 }
 
-// AsDestination converts current Enpoint into Destination.
+// AsDestination converts current Endpoint into Destination.
 func (p *Endpoint) AsDestination() Destination {
 	return Destination{
 		Network: p.Network,

+ 3 - 3
transport/ray/ray.go

@@ -13,7 +13,7 @@ type OutboundRay interface {
 
 	// OutboundOutput provides a stream to retrieve the response from the
 	// outbound connection. The outbound connection shall close the channel
-	// after all responses are receivced and put into the channel.
+	// after all responses are received and put into the channel.
 	OutboundOutput() OutputStream
 }
 
@@ -24,13 +24,13 @@ type InboundRay interface {
 	// is received and put into the channel.
 	InboundInput() OutputStream
 
-	// InboudBound provides a stream of data for the inbound connection to write
+	// InboundOutput provides a stream of data for the inbound connection to write
 	// as response. The inbound connection shall write all the data from the
 	// channel until it is closed.
 	InboundOutput() InputStream
 }
 
-// Ray is an internal tranport channel between inbound and outbound connection.
+// Ray is an internal transport channel between inbound and outbound connection.
 type Ray interface {
 	InboundRay
 	OutboundRay