Skip to content

Commit

Permalink
Fix #650 SAX documentation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Jun 15, 2016
1 parent b34f185 commit 1c087b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/sax.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ These events can be easily matched with the JSON, except some event parameters n
using namespace rapidjson;
using namespace std;

struct MyHandler {
struct MyHandler : public BaseReaderHandler<UTF8<>, MyHandler> {
bool Null() { cout << "Null()" << endl; return true; }
bool Bool(bool b) { cout << "Bool(" << boolalpha << b << ")" << endl; return true; }
bool Int(int i) { cout << "Int(" << i << ")" << endl; return true; }
Expand Down
3 changes: 2 additions & 1 deletion doc/sax.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ EndObject(7)
using namespace rapidjson;
using namespace std;

struct MyHandler {
struct MyHandler : public BaseReaderHandler<UTF8<>, MyHandler> {
bool Null() { cout << "Null()" << endl; return true; }
bool Bool(bool b) { cout << "Bool(" << boolalpha << b << ")" << endl; return true; }
bool Int(int i) { cout << "Int(" << i << ")" << endl; return true; }
Expand Down Expand Up @@ -106,6 +106,7 @@ class Handler {
bool Int64(int64_t i);
bool Uint64(uint64_t i);
bool Double(double d);
bool RawNumber(const Ch* str, SizeType length, bool copy);
bool String(const Ch* str, SizeType length, bool copy);
bool StartObject();
bool Key(const Ch* str, SizeType length, bool copy);
Expand Down

0 comments on commit 1c087b7

Please sign in to comment.