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 } ```