Browse Source

Merge pull request #8105 from nkovacs/its

Documentation: grammar fixes, it's -> its
Xiang Li 8 years ago
parent
commit
3a37b68cda
4 changed files with 4 additions and 4 deletions
  1. 1 1
      client/doc.go
  2. 1 1
      client/members.go
  3. 1 1
      proxy/grpcproxy/cache/store.go
  4. 1 1
      raft/read_only.go

+ 1 - 1
client/doc.go

@@ -59,7 +59,7 @@ Use a custom context to set timeouts on your operations:
 	ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
 	ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
 	defer cancel()
 	defer cancel()
 
 
-	// set a new key, ignoring it's previous state
+	// set a new key, ignoring its previous state
 	_, err := kAPI.Set(ctx, "/ping", "pong", nil)
 	_, err := kAPI.Set(ctx, "/ping", "pong", nil)
 	if err != nil {
 	if err != nil {
 		if err == context.DeadlineExceeded {
 		if err == context.DeadlineExceeded {

+ 1 - 1
client/members.go

@@ -44,7 +44,7 @@ type Member struct {
 	PeerURLs []string `json:"peerURLs"`
 	PeerURLs []string `json:"peerURLs"`
 
 
 	// ClientURLs represents the HTTP(S) endpoints on which this Member
 	// ClientURLs represents the HTTP(S) endpoints on which this Member
-	// serves it's client-facing APIs.
+	// serves its client-facing APIs.
 	ClientURLs []string `json:"clientURLs"`
 	ClientURLs []string `json:"clientURLs"`
 }
 }
 
 

+ 1 - 1
proxy/grpcproxy/cache/store.go

@@ -40,7 +40,7 @@ type Cache interface {
 	Close()
 	Close()
 }
 }
 
 
-// keyFunc returns the key of an request, which is used to look up in the cache for it's caching response.
+// keyFunc returns the key of a request, which is used to look up its caching response in the cache.
 func keyFunc(req *pb.RangeRequest) string {
 func keyFunc(req *pb.RangeRequest) string {
 	// TODO: use marshalTo to reduce allocation
 	// TODO: use marshalTo to reduce allocation
 	b, err := req.Marshal()
 	b, err := req.Marshal()

+ 1 - 1
raft/read_only.go

@@ -18,7 +18,7 @@ import pb "github.com/coreos/etcd/raft/raftpb"
 
 
 // ReadState provides state for read only query.
 // ReadState provides state for read only query.
 // It's caller's responsibility to call ReadIndex first before getting
 // It's caller's responsibility to call ReadIndex first before getting
-// this state from ready, It's also caller's duty to differentiate if this
+// this state from ready, it's also caller's duty to differentiate if this
 // state is what it requests through RequestCtx, eg. given a unique id as
 // state is what it requests through RequestCtx, eg. given a unique id as
 // RequestCtx
 // RequestCtx
 type ReadState struct {
 type ReadState struct {