Update json_value.cpp

fix boundry to boundary.
This commit is contained in:
Sun Yiming Z 2021-03-18 00:48:04 +08:00 committed by GitHub
parent 1ee39a6752
commit 0707eefd55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1401,7 +1401,7 @@ void Value::Comments::set(CommentPlacement slot, String comment) {
if (!ptr_) {
ptr_ = std::unique_ptr<Array>(new Array());
}
// check comments array boundry.
// check comments array boundary.
if (slot < CommentPlacement::numberOfCommentPlacement) {
(*ptr_)[slot] = std::move(comment);
}