Skip to content

Commit 91cd123

Browse files
authored
Merge pull request Tencent#1181 from luzpaz/misc-typos
Misc. typos
2 parents 4956227 + 9152188 commit 91cd123

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ IF(UNIX OR CYGWIN)
128128
ELSEIF(WIN32)
129129
SET(_CMAKE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/cmake")
130130
ENDIF()
131-
SET(CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" CACHE PATH "The directory cmake fiels are installed in")
131+
SET(CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" CACHE PATH "The directory cmake files are installed in")
132132

133133
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
134134

doc/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ HTML_STYLESHEET =
11261126
# defined cascading style sheet that is included after the standard style sheets
11271127
# created by doxygen. Using this option one can overrule certain style aspects.
11281128
# This is preferred over using HTML_STYLESHEET since it does not replace the
1129-
# standard style sheet and is therefor more robust against future updates.
1129+
# standard style sheet and is therefore more robust against future updates.
11301130
# Doxygen will copy the style sheet file to the output directory. For an example
11311131
# see the documentation.
11321132
# This tag requires that the tag GENERATE_HTML is set to YES.

doc/Doxyfile.zh-cn.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ HTML_STYLESHEET =
11261126
# defined cascading style sheet that is included after the standard style sheets
11271127
# created by doxygen. Using this option one can overrule certain style aspects.
11281128
# This is preferred over using HTML_STYLESHEET since it does not replace the
1129-
# standard style sheet and is therefor more robust against future updates.
1129+
# standard style sheet and is therefore more robust against future updates.
11301130
# Doxygen will copy the style sheet file to the output directory. For an example
11311131
# see the documentation.
11321132
# This tag requires that the tag GENERATE_HTML is set to YES.

doc/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Alternatively, if we don't want to explicitly refer to the root value of `addres
236236

237237
4. What is BOM? How RapidJSON handle it?
238238

239-
[Byte order mark (BOM)](http://en.wikipedia.org/wiki/Byte_order_mark) sometimes reside at the beginning of file/stream to indiciate the UTF encoding type of it.
239+
[Byte order mark (BOM)](http://en.wikipedia.org/wiki/Byte_order_mark) sometimes reside at the beginning of file/stream to indicate the UTF encoding type of it.
240240

241241
RapidJSON's `EncodedInputStream` can detect/consume BOM. `EncodedOutputStream` can optionally write a BOM. See [Encoded Streams](doc/stream.md) for example.
242242

doc/internals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Both SAX and DOM APIs depends on 3 additional concepts: `Allocator`, `Encoding`
2828

2929
## Data Layout {#DataLayout}
3030

31-
`Value` is a [variant type](http://en.wikipedia.org/wiki/Variant_type). In RapidJSON's context, an instance of `Value` can contain 1 of 6 JSON value types. This is possible by using `union`. Each `Value` contains two members: `union Data data_` and a`unsigned flags_`. The `flags_` indiciates the JSON type, and also additional information.
31+
`Value` is a [variant type](http://en.wikipedia.org/wiki/Variant_type). In RapidJSON's context, an instance of `Value` can contain 1 of 6 JSON value types. This is possible by using `union`. Each `Value` contains two members: `union Data data_` and a`unsigned flags_`. The `flags_` indicates the JSON type, and also additional information.
3232

3333
The following tables show the data layout of each type. The 32-bit/64-bit columns indicates the size of the field in bytes.
3434

@@ -101,7 +101,7 @@ The following tables show the data layout of each type. The 32-bit/64-bit column
101101

102102
Here are some notes:
103103
* To reduce memory consumption for 64-bit architecture, `SizeType` is typedef as `unsigned` instead of `size_t`.
104-
* Zero padding for 32-bit number may be placed after or before the actual type, according to the endianess. This makes possible for interpreting a 32-bit integer as a 64-bit integer, without any conversion.
104+
* Zero padding for 32-bit number may be placed after or before the actual type, according to the endianness. This makes possible for interpreting a 32-bit integer as a 64-bit integer, without any conversion.
105105
* An `Int` is always an `Int64`, but the converse is not always true.
106106

107107
## Flags {#Flags}

example/archiver/archiver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class JsonReader {
9797
// PIMPL
9898
void* mDocument; ///< DOM result of parsing.
9999
void* mStack; ///< Stack for iterating the DOM
100-
bool mError; ///< Whether an error is occured.
100+
bool mError; ///< Whether an error has occurred.
101101
};
102102

103103
class JsonWriter {

example/jsonx/jsonx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// JSON to JSONx conversion exmaple, using SAX API.
1+
// JSON to JSONx conversion example, using SAX API.
22
// JSONx is an IBM standard format to represent JSON as XML.
33
// https://www-01.ibm.com/support/knowledgecenter/SS9H2Y_7.1.0/com.ibm.dp.doc/json_jsonx.html
44
// This example parses JSON text from stdin with validation,

example/parsebyparts/parsebyparts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int main() {
143143
AsyncDocumentParser<> parser(d);
144144

145145
const char json1[] = " { \"hello\" : \"world\", \"t\" : tr";
146-
//const char json1[] = " { \"hello\" : \"world\", \"t\" : trX"; // Fot test parsing error
146+
//const char json1[] = " { \"hello\" : \"world\", \"t\" : trX"; // For test parsing error
147147
const char json2[] = "ue, \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.14";
148148
const char json3[] = "16, \"a\":[1, 2, 3, 4] } ";
149149

include/rapidjson/document.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ class GenericDocument : public GenericValue<Encoding, Allocator> {
23622362
//!@name Handling parse errors
23632363
//!@{
23642364

2365-
//! Whether a parse error has occured in the last parsing.
2365+
//! Whether a parse error has occurred in the last parsing.
23662366
bool HasParseError() const { return parseResult_.IsError(); }
23672367

23682368
//! Get the \ref ParseErrorCode of last parsing.

include/rapidjson/prettywriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum PrettyFormatOptions {
3939

4040
//! Writer with indentation and spacing.
4141
/*!
42-
\tparam OutputStream Type of ouptut os.
42+
\tparam OutputStream Type of output os.
4343
\tparam SourceEncoding Encoding of source string.
4444
\tparam TargetEncoding Encoding of output stream.
4545
\tparam StackAllocator Type of allocator for allocating memory of stack.

0 commit comments

Comments
 (0)