Skip to content

Commit 3660b49

Browse files
committed
Use post 1.x APIs in Quickstart docs
1 parent 7a02f03 commit 3660b49

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

QUICKSTART-C.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ int main(void) {
8888

8989
/* serializes ["Hello", "MessagePack"]. */
9090
msgpack_pack_array(pk, 2);
91-
msgpack_pack_raw(pk, 5);
92-
msgpack_pack_raw_body(pk, "Hello", 5);
93-
msgpack_pack_raw(pk, 11);
94-
msgpack_pack_raw_body(pk, "MessagePack", 11);
91+
msgpack_pack_bin(pk, 5);
92+
msgpack_pack_bin_body(pk, "Hello", 5);
93+
msgpack_pack_bin(pk, 11);
94+
msgpack_pack_bin_body(pk, "MessagePack", 11);
9595

9696
/* deserializes it. */
9797
msgpack_unpacked msg;
@@ -128,10 +128,10 @@ int main(void) {
128128
129129
/* serializes ["Hello", "MessagePack"]. */
130130
msgpack_pack_array(pk, 3);
131-
msgpack_pack_raw(pk, 5);
132-
msgpack_pack_raw_body(pk, "Hello", 5);
133-
msgpack_pack_raw(pk, 11);
134-
msgpack_pack_raw_body(pk, "MessagePack", 11);
131+
msgpack_pack_bin(pk, 5);
132+
msgpack_pack_bin_body(pk, "Hello", 5);
133+
msgpack_pack_bin(pk, 11);
134+
msgpack_pack_bin_body(pk, "MessagePack", 11);
135135
msgpack_pack_int(pk, j);
136136
137137
/* deserializes it. */

0 commit comments

Comments
 (0)