mirror of
https://github.com/nlohmann/json.git
synced 2026-10-27 16:28:57 +00:00
remove extra semicolon
in example of NLOHMANN_JSON_SERIALIZE_ENUM
This commit is contained in:
1 parent
e89c946451
commit
dc21cbb751
1 file changed
+1
-1
@@ -917,7 +917,7 @@ NLOHMANN_JSON_SERIALIZE_ENUM( TaskState, {
|
|||||||
{TS_STOPPED, "stopped"},
|
{TS_STOPPED, "stopped"},
|
||||||
{TS_RUNNING, "running"},
|
{TS_RUNNING, "running"},
|
||||||
{TS_COMPLETED, "completed"},
|
{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.
|
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.
|
||||||
|
|||||||
Reference in new issue
Block a user