From e64faf4df1a858e4b1d273f48fc1e25ea100f124 Mon Sep 17 00:00:00 2001 From: Jeffrey Thompson Date: Mon, 6 Feb 2023 07:51:19 -0500 Subject: [PATCH] Update README.md these are two typos that prevent the example from working properly. Also please approve the pull request for updating the unordered_map header file. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1615eb2..debba70 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ struct Person { std::vector aliases; template - void msgpack(T &pack) { + void pack(T &pack) { pack(name, age, aliases); } }; @@ -37,7 +37,7 @@ int main() { auto person = Person{"John", 22, {"Ripper", "Silverhand"}}; auto data = msgpack::pack(person); // Pack your object - auto john = msgpack::unpack(data.data()); // Unpack it + auto john = msgpack::unpack(data); // Unpack it } ```