Skip to content

Commit 212bd92

Browse files
committed
Update
1 parent 9bd4e1e commit 212bd92

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int main()
9090
jv.append("A").append("B").append("C"); // true
9191
jv.at(0) = "hello"; // modify, ok
9292

93-
json::value jv1
93+
json::value jv1;
9494
jv1.at(0) = "A"; // false
9595
}
9696
```

json.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ class value {
3535
// JSON Array
3636
typedef std::vector<value_ptr> array;
3737
typedef std::unique_ptr<array> array_ptr;
38-
public:
38+
// Saved Value
3939
typedef std::variant<string, number, object_ptr, array_ptr> union_value;
40+
public:
4041
value() : type(Null) { }
4142
value(const value&) = delete;
4243
value& operator=(const value&) = delete;

0 commit comments

Comments
 (0)