Skip to content

Commit 95b3092

Browse files
committed
Fix comments on Json Reader
There have been multiple discussions of the inaccurate comments in the Json Reader class. This patch just updates those comments.
1 parent f8db40f commit 95b3092

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib_json/json_reader.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ bool Reader::pushError(const Value& value,
870870

871871
bool Reader::good() const { return errors_.empty(); }
872872

873-
// exact copy of Features
873+
// Originally copied from the Features class (now deprecated), used internally
874+
// for features implementation.
874875
class OurFeatures {
875876
public:
876877
static OurFeatures all();
@@ -885,15 +886,13 @@ class OurFeatures {
885886
size_t stackLimit_;
886887
}; // OurFeatures
887888

888-
// exact copy of Implementation of class Features
889-
// ////////////////////////////////
890-
891889
OurFeatures OurFeatures::all() { return {}; }
892890

893891
// Implementation of class Reader
894892
// ////////////////////////////////
895893

896-
// exact copy of Reader, renamed to OurReader
894+
// Originally copied from the Reader class (now deprecated), used internally
895+
// for implementing JSON reading.
897896
class OurReader {
898897
public:
899898
typedef char Char;

0 commit comments

Comments
 (0)