From dc21cbb7515f289184ced9ce5bb952f8e1002ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Plch?= Date: Tue, 22 Jan 2019 10:13:12 +0100 Subject: [PATCH] remove extra semicolon in example of NLOHMANN_JSON_SERIALIZE_ENUM --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eed744bb..b91b43ec 100644 --- a/README.md +++ b/README.md @@ -917,7 +917,7 @@ NLOHMANN_JSON_SERIALIZE_ENUM( TaskState, { {TS_STOPPED, "stopped"}, {TS_RUNNING, "running"}, {TS_COMPLETED, "completed"}, -}); +}) ``` The `NLOHMANN_JSON_SERIALIZE_ENUM()` macro declares a set of `to_json()` / `from_json()` functions for type `TaskState` while avoiding repetition and boilerplate serilization code.