Skip to content

Commit a519182

Browse files
AlexJucasundb
andauthored
Fix grammar and typos (redis#13803)
This MR includes minor improvements and grammatical fixes in the documentation. Specifically: • Corrected grammatical mistakes in sentences for better clarity. • Fixed typos and improved phrasing to enhance readability. • Ensured consistency in terminology and sentence structure. --------- Co-authored-by: debing.sun <[email protected]>
1 parent a257b6b commit a519182

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cluster_legacy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,7 @@ uint32_t writePingExt(clusterMsg *hdr, int gossipcount) {
26022602
totlen += getShardIdPingExtSize();
26032603
extensions++;
26042604

2605-
/* Populate insternal secret */
2605+
/* Populate internal secret */
26062606
if (cursor != NULL) {
26072607
clusterMsgPingExtInternalSecret *ext = preparePingExt(cursor, CLUSTERMSG_EXT_TYPE_INTERNALSECRET, getInternalSecretPingExtSize());
26082608
memcpy(ext->internal_secret, server.cluster->internal_secret, CLUSTER_INTERNALSECRETLEN);

src/cluster_legacy.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ typedef struct {
231231
uint16_t ver; /* Protocol version, currently set to 1. */
232232
uint16_t port; /* Primary port number (TCP or TLS). */
233233
uint16_t type; /* Message type */
234-
uint16_t count; /* Only used for some kind of messages. */
234+
uint16_t count; /* Only used for some kinds of messages. */
235235
uint64_t currentEpoch; /* The epoch accordingly to the sending node. */
236236
uint64_t configEpoch; /* The config epoch if it's a master, or the last
237237
epoch advertised by its master if it is a
@@ -258,8 +258,8 @@ typedef struct {
258258
* especially during cluster rolling upgrades.
259259
*
260260
* Therefore, fields in this struct should remain at the same offset from
261-
* release to release. The static asserts below ensures that incompatible
262-
* changes in clusterMsg be caught at compile time.
261+
* release to release. The static asserts below ensure that incompatible
262+
* changes in clusterMsg are caught at compile time.
263263
*/
264264

265265
static_assert(offsetof(clusterMsg, sig) == 0, "unexpected field offset");

0 commit comments

Comments
 (0)