From dae27552532996cb936826f11f35e8e631fc1074 Mon Sep 17 00:00:00 2001 From: Asko Kauppi Date: Fri, 24 Feb 2017 10:17:44 +0200 Subject: [PATCH] Documentation: fix typos --- Documentation/dev-guide/api_reference_v3.md | 4 ++-- Documentation/dev-guide/interacting_v3.md | 2 +- Documentation/dev-guide/limit.md | 2 +- Documentation/learning/api_guarantees.md | 2 +- Documentation/op-guide/gateway.md | 2 +- Documentation/v2/api_v3.md | 2 +- etcdserver/etcdserverpb/rpc.pb.go | 2 +- etcdserver/etcdserverpb/rpc.proto | 6 +++--- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/dev-guide/api_reference_v3.md b/Documentation/dev-guide/api_reference_v3.md index 771c16dc0..569b81a06 100644 --- a/Documentation/dev-guide/api_reference_v3.md +++ b/Documentation/dev-guide/api_reference_v3.md @@ -427,8 +427,8 @@ Empty field. | Field | Description | Type | | ----- | ----------- | ---- | | key | key is the first key to delete in the range. | bytes | -| range_end | range_end is the key following the last key to delete for the range [key, range_end). If range_end is not given, the range is defined to contain only the key argument. If range_end is one bit larger than the given key, then the range is all the all keys with the prefix (the given key). If range_end is '\0', the range is all keys greater than or equal to the key argument. | bytes | -| prev_kv | If prev_kv is set, etcd gets the previous key-value pairs before deleting it. The previous key-value pairs will be returned in the delte response. | bool | +| range_end | range_end is the key following the last key to delete for the range [key, range_end). If range_end is not given, the range is defined to contain only the key argument. If range_end is one bit larger than the given key, then the range is all the keys with the prefix (the given key). If range_end is '\0', the range is all keys greater than or equal to the key argument. | bytes | +| prev_kv | If prev_kv is set, etcd gets the previous key-value pairs before deleting it. The previous key-value pairs will be returned in the delete response. | bool | diff --git a/Documentation/dev-guide/interacting_v3.md b/Documentation/dev-guide/interacting_v3.md index 65798eeec..dd7942131 100644 --- a/Documentation/dev-guide/interacting_v3.md +++ b/Documentation/dev-guide/interacting_v3.md @@ -10,7 +10,7 @@ export ETCDCTL_API=3 ## Find versions -etcdctl version and Server API version can be useful in finding the appropriate commands to be used for performing various opertions on etcd. +etcdctl version and Server API version can be useful in finding the appropriate commands to be used for performing various operations on etcd. Here is the command to find the versions: diff --git a/Documentation/dev-guide/limit.md b/Documentation/dev-guide/limit.md index 0d7267ebd..9452b5366 100644 --- a/Documentation/dev-guide/limit.md +++ b/Documentation/dev-guide/limit.md @@ -2,7 +2,7 @@ ## Request size limit -etcd is designed to handle small key value pairs typical for metadata. Larger requests will work, but may increase the latency of other requests. For the time being, etcd guarantees to support RPC requests with up to 1MB of data. In the future, the size limit may be loosened or made it configurable. +etcd is designed to handle small key value pairs typical for metadata. Larger requests will work, but may increase the latency of other requests. For the time being, etcd guarantees to support RPC requests with up to 1MB of data. In the future, the size limit may be loosened or made configurable. ## Storage size limit diff --git a/Documentation/learning/api_guarantees.md b/Documentation/learning/api_guarantees.md index a9c22e411..936e74138 100644 --- a/Documentation/learning/api_guarantees.md +++ b/Documentation/learning/api_guarantees.md @@ -21,7 +21,7 @@ An etcd operation is considered complete when it is committed through consensus, #### Revision -An etcd operation that modifies the key value store is assigned with a single increasing revision. A transaction operation might modifies the key value store multiple times, but only one revision is assigned. The revision attribute of a key value pair that modified by the operation has the same value as the revision of the operation. The revision can be used as a logical clock for key value store. A key value pair that has a larger revision is modified after a key value pair with a smaller revision. Two key value pairs that have the same revision are modified by an operation "concurrently". +An etcd operation that modifies the key value store is assigned a single increasing revision. A transaction operation might modify the key value store multiple times, but only one revision is assigned. The revision attribute of a key value pair that was modified by the operation has the same value as the revision of the operation. The revision can be used as a logical clock for key value store. A key value pair that has a larger revision is modified after a key value pair with a smaller revision. Two key value pairs that have the same revision are modified by an operation "concurrently". ### Guarantees provided diff --git a/Documentation/op-guide/gateway.md b/Documentation/op-guide/gateway.md index 22b99d871..a7cd1be6f 100644 --- a/Documentation/op-guide/gateway.md +++ b/Documentation/op-guide/gateway.md @@ -13,7 +13,7 @@ Every application that accesses etcd must first have the address of an etcd clus etcd gateway solves this problem by serving as a stable local endpoint. A typical etcd gateway configuration has each machine running a gateway listening on a local address and every etcd application connecting to its local gateway. The upshot is only the gateway needs to update its endpoints instead of updating each and every application. -In summary, to automatically propagate cluster endpoint changes, the etcd gateway runs on every machine serving multiple applications accessing same etcd cluster. +In summary, to automatically propagate cluster endpoint changes, the etcd gateway runs on every machine serving multiple applications accessing the same etcd cluster. ## When not to use etcd gateway diff --git a/Documentation/v2/api_v3.md b/Documentation/v2/api_v3.md index 21bc61c9b..06d1bd241 100644 --- a/Documentation/v2/api_v3.md +++ b/Documentation/v2/api_v3.md @@ -47,7 +47,7 @@ An etcd operation is considered complete when it is committed through consensus, #### revision -An etcd operation that modifies the key value store is assigned with a single increasing revision. A transaction operation might modifies the key value store multiple times, but only one revision is assigned. The revision attribute of a key value pair that modified by the operation has the same value as the revision of the operation. The revision can be used as a logical clock for key value store. A key value pair that has a larger revision is modified after a key value pair with a smaller revision. Two key value pairs that have the same revision are modified by an operation "concurrently". +An etcd operation that modifies the key value store is assigned with a single increasing revision. A transaction operation might modify the key value store multiple times, but only one revision is assigned. The revision attribute of a key value pair that modified by the operation has the same value as the revision of the operation. The revision can be used as a logical clock for key value store. A key value pair that has a larger revision is modified after a key value pair with a smaller revision. Two key value pairs that have the same revision are modified by an operation "concurrently". ### Guarantees Provided diff --git a/etcdserver/etcdserverpb/rpc.pb.go b/etcdserver/etcdserverpb/rpc.pb.go index 38bda5dd7..2b9f83356 100644 --- a/etcdserver/etcdserverpb/rpc.pb.go +++ b/etcdserver/etcdserverpb/rpc.pb.go @@ -362,7 +362,7 @@ type DeleteRangeRequest struct { // If range_end is '\0', the range is all keys greater than or equal to the key argument. RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` // If prev_kv is set, etcd gets the previous key-value pairs before deleting it. - // The previous key-value pairs will be returned in the delte response. + // The previous key-value pairs will be returned in the delete response. PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` } diff --git a/etcdserver/etcdserverpb/rpc.proto b/etcdserver/etcdserverpb/rpc.proto index 7bca90c15..91527a286 100644 --- a/etcdserver/etcdserverpb/rpc.proto +++ b/etcdserver/etcdserverpb/rpc.proto @@ -445,13 +445,13 @@ message DeleteRangeRequest { bytes key = 1; // range_end is the key following the last key to delete for the range [key, range_end). // If range_end is not given, the range is defined to contain only the key argument. - // If range_end is one bit larger than the given key, then the range is all - // the all keys with the prefix (the given key). + // If range_end is one bit larger than the given key, then the range is all the keys + // with the prefix (the given key). // If range_end is '\0', the range is all keys greater than or equal to the key argument. bytes range_end = 2; // If prev_kv is set, etcd gets the previous key-value pairs before deleting it. - // The previous key-value pairs will be returned in the delte response. + // The previous key-value pairs will be returned in the delete response. bool prev_kv = 3; }