Fix some typos for n-dimensional arrays (#3767)

This commit is contained in:
Dirk Stolle authored and GitHub committed 2022-09-26 06:23:18 +02:00
1 parent 17d9eacd24
commit 4b2c8ce6bc
3 files changed
+6 -6

No files matched your search

@@ -2153,7 +2153,7 @@ class binary_reader
}
if (is_ndarray) // ndarray dimensional vector can only contain integers, and can not embed another array
{
return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, exception_message(input_format, "ndarray dimentional vector is not allowed", "size"), nullptr));
return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, exception_message(input_format, "ndarray dimensional vector is not allowed", "size"), nullptr));
}
std::vector<size_t> dim;
if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))