Skip to content

Commit 1ae7e74

Browse files
alexandermyasnikovlocker
authored andcommitted
Fix missing commas
1 parent 81b0bac commit 1ae7e74

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Examples
3333
char buf[1024];
3434

3535
char *w = buf;
36-
w = mp_encode_array(w, 4)
36+
w = mp_encode_array(w, 4);
3737
w = mp_encode_uint(w, 10);
3838
w = mp_encode_str(w, "hello world", strlen("hello world"));
3939
w = mp_encode_bool(w, true);

‎msgpuck.h‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* // Encode
4444
* char buf[1024];
4545
* char *w = buf;
46-
* w = mp_encode_array(w, 4)
46+
* w = mp_encode_array(w, 4);
4747
* w = mp_encode_uint(w, 10);
4848
* w = mp_encode_str(w, "hello world", strlen("hello world"));
4949
* w = mp_encode_bool(w, true);
@@ -52,7 +52,7 @@
5252
* // Validate
5353
* const char *b = buf;
5454
* int r = mp_check(&b, w);
55-
* assert(!r)
55+
* assert(!r);
5656
* assert(b == w);
5757
*
5858
* // Decode
@@ -416,7 +416,7 @@ mp_sizeof_array(uint32_t size);
416416
* // Encode
417417
* char buf[1024];
418418
* char *w = buf;
419-
* w = mp_encode_array(w, 2)
419+
* w = mp_encode_array(w, 2);
420420
* w = mp_encode_uint(w, 10);
421421
* w = mp_encode_uint(w, 15);
422422
*
@@ -782,13 +782,13 @@ mp_sizeof_bin(uint32_t len);
782782
* char *b = buffer;
783783
* b = mp_encode_strl(b, hdr.total_len);
784784
* char *s = b;
785-
* memcpy(b, pkt1.data, pkt1.len)
785+
* memcpy(b, pkt1.data, pkt1.len);
786786
* b += pkt1.len;
787787
* // get next packet
788-
* memcpy(b, pkt2.data, pkt2.len)
788+
* memcpy(b, pkt2.data, pkt2.len);
789789
* b += pkt2.len;
790790
* // get next packet
791-
* memcpy(b, pkt1.data, pkt3.len)
791+
* memcpy(b, pkt1.data, pkt3.len);
792792
* b += pkt3.len;
793793
*
794794
* // Check that all data was received

0 commit comments

Comments
 (0)