Skip to content

Commit

Permalink
chore: typos of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jan 25, 2024
1 parent 50753dc commit 8dd0188
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ if (j["happy"].is<std::vector<int>>()) {
std::vector<int> vec = (std::vector<int>)j["happy"];
}
else {
std::cout << "`天啊, j[\"happy\"] 不是一个数组!" << std::endl;
std::cout << "`还好我检查了,不然就炸了!" << std::endl;
std::cout << "天啊, j[\"happy\"] 不是一个数组!" << std::endl;
std::cout << "还好我检查了,不然就炸了!" << std::endl;
}
```

Expand Down
4 changes: 2 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ if (j["happy"].is<std::vector<int>>()) {
std::vector<int> vec = (std::vector<int>)j["happy"];
}
else {
std::cout << "`Oh my god, j[\"happy\"] is not an array." << std::endl;
std::cout << "`Fortunately, I checked it, otherwise it will crash!" << std::endl;
std::cout << "Oh my god, j[\"happy\"] is not an array." << std::endl;
std::cout << "Fortunately, I checked it, otherwise it will crash!" << std::endl;
}
```

Expand Down
4 changes: 2 additions & 2 deletions sample/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ void serializing()
std::vector<int> vec = (std::vector<int>)j["happy"];
}
else {
std::cout << "`Oh my god, j[\"happy\"] is not an array." << std::endl;
std::cout << "`Fortunately, I checked it, otherwise it will crash!" << std::endl;
std::cout << "Oh my god, j[\"happy\"] is not an array." << std::endl;
std::cout << "Fortunately, I checked it, otherwise it will crash!" << std::endl;
}

/* I guess you have understood, yes, **meojson** is not only a json library, but also a serialization library! */
Expand Down

0 comments on commit 8dd0188

Please sign in to comment.