From b4df717675f79a44378826108f56cda773016dd7 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Fri, 27 Jun 2014 16:13:54 +0800 Subject: [PATCH] Fixes grammar mistakes in error messages. --- include/rapidjson/error/en.h | 4 ++-- include/rapidjson/reader.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/rapidjson/error/en.h b/include/rapidjson/error/en.h index bbdb024..dc6dc48 100644 --- a/include/rapidjson/error/en.h +++ b/include/rapidjson/error/en.h @@ -19,7 +19,7 @@ inline const RAPIDJSON_ERROR_CHARTYPE* GetParseError_En(ParseErrorCode parseErro case kParseErrorObjectMissColon: return RAPIDJSON_ERROR_STRING("Missing a colon after a name of object member."); case kParseErrorObjectMissCommaOrCurlyBracket: return RAPIDJSON_ERROR_STRING("Missing a comma or '}' after an object member."); - case kParseErrorArrayMissCommaOrSquareBracket: return RAPIDJSON_ERROR_STRING("Must be a comma or ']' after an array element."); + case kParseErrorArrayMissCommaOrSquareBracket: return RAPIDJSON_ERROR_STRING("Missing a comma or ']' after an array element."); case kParseErrorStringUnicodeEscapeInvalidHex: return RAPIDJSON_ERROR_STRING("Incorrect hex digit after \\u escape in string."); case kParseErrorStringUnicodeSurrogateInvalid: return RAPIDJSON_ERROR_STRING("The surrogate pair in string is invalid."); @@ -27,7 +27,7 @@ inline const RAPIDJSON_ERROR_CHARTYPE* GetParseError_En(ParseErrorCode parseErro case kParseErrorStringMissQuotationMark: return RAPIDJSON_ERROR_STRING("Missing a closing quotation mark in string."); case kParseErrorStringInvalidEncoding: return RAPIDJSON_ERROR_STRING("Invalid encoidng in string."); - case kParesErrorNumberTooBig: return RAPIDJSON_ERROR_STRING("Number too big to store in double."); + case kParesErrorNumberTooBig: return RAPIDJSON_ERROR_STRING("Number too big to be stored in double."); case kParseErrorNumberMissFraction: return RAPIDJSON_ERROR_STRING("Miss fraction part in number."); case kParseErrorNumberMissExponent: return RAPIDJSON_ERROR_STRING("Miss exponent in number."); diff --git a/include/rapidjson/reader.h b/include/rapidjson/reader.h index 1b83485..5483bd7 100644 --- a/include/rapidjson/reader.h +++ b/include/rapidjson/reader.h @@ -64,7 +64,7 @@ enum ParseErrorCode { kParseErrorObjectMissColon, //!< Missing a colon after a name of object member. kParseErrorObjectMissCommaOrCurlyBracket, //!< Missing a comma or '}' after an object member. - kParseErrorArrayMissCommaOrSquareBracket, //!< Must be a comma or ']' after an array element. + kParseErrorArrayMissCommaOrSquareBracket, //!< Missing a comma or ']' after an array element. kParseErrorStringUnicodeEscapeInvalidHex, //!< Incorrect hex digit after \\u escape in string. kParseErrorStringUnicodeSurrogateInvalid, //!< The surrogate pair in string is invalid. @@ -72,7 +72,7 @@ enum ParseErrorCode { kParseErrorStringMissQuotationMark, //!< Missing a closing quotation mark in string. kParseErrorStringInvalidEncoding, //!< Invalid encoidng in string. - kParesErrorNumberTooBig, //!< Number too big to store in double. + kParesErrorNumberTooBig, //!< Number too big to be stored in double. kParseErrorNumberMissFraction, //!< Miss fraction part in number. kParseErrorNumberMissExponent //!< Miss exponent in number. };