Skip to content

Commit a1f1613

Browse files
luzpazcdunn2001baylesj
authored
Fix various typos (#1350)
Found via `codespell -q 3 -L alue,alse` Co-authored-by: Christopher Dunn <cdunn2001@gmail.com> Co-authored-by: Jordan Bayles <jophba@chromium.org>
1 parent 2d55c74 commit a1f1613

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# policies that provide successful builds. By setting JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION
77
# to a value greater than the oldest policies, all policies between
88
# JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION and CMAKE_VERSION (used for this build)
9-
# are set to their NEW behaivor, thereby suppressing policy warnings related to policies
9+
# are set to their NEW behavior, thereby suppressing policy warnings related to policies
1010
# between the JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION and CMAKE_VERSION.
1111
#
1212
# CMake versions greater than the JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION policies will

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ See `doxybuild.py --help` for options.
7777
To add a test, you need to create two files in test/data:
7878

7979
* a `TESTNAME.json` file, that contains the input document in JSON format.
80-
* a `TESTNAME.expected` file, that contains a flatened representation of the
80+
* a `TESTNAME.expected` file, that contains a flattened representation of the
8181
input document.
8282

8383
The `TESTNAME.expected` file format is as follows:

include/json/writer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class JSON_API FastWriter
217217
* - otherwise, it the values do not fit on one line, or the array contains
218218
* object or non empty array, then print one value per line.
219219
*
220-
* If the Value have comments then they are outputed according to their
220+
* If the Value have comments then they are outputted according to their
221221
*#CommentPlacement.
222222
*
223223
* \sa Reader, Value, Value::setComment()
@@ -286,7 +286,7 @@ class JSON_API
286286
* - otherwise, it the values do not fit on one line, or the array contains
287287
* object or non empty array, then print one value per line.
288288
*
289-
* If the Value have comments then they are outputed according to their
289+
* If the Value have comments then they are outputted according to their
290290
#CommentPlacement.
291291
*
292292
* \sa Reader, Value, Value::setComment()

src/lib_json/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ if(BUILD_STATIC_LIBS)
142142
set(STATIC_LIB ${PROJECT_NAME}_static)
143143
add_library(${STATIC_LIB} STATIC ${PUBLIC_HEADERS} ${JSONCPP_SOURCES})
144144

145-
# avoid name clashes on windows as the shared import lib is alse named jsoncpp.lib
145+
# avoid name clashes on windows as the shared import lib is also named jsoncpp.lib
146146
if(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
147147
if (MSVC)
148148
set(STATIC_SUFFIX "_static")

src/lib_json/json_reader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ bool OurReader::decodeNumber(Token& token, Value& decoded) {
16141614
const auto digit(static_cast<Value::UInt>(c - '0'));
16151615
if (value >= threshold) {
16161616
// We've hit or exceeded the max value divided by 10 (rounded down). If
1617-
// a) we've only just touched the limit, meaing value == threshold,
1617+
// a) we've only just touched the limit, meaning value == threshold,
16181618
// b) this is the last digit, or
16191619
// c) it's small enough to fit in that rounding delta, we're okay.
16201620
// Otherwise treat this number as a double to avoid overflow.

src/test_lib_json/jsontest.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class TestResult {
7474

7575
/// Removes the last PredicateContext added to the predicate stack
7676
/// chained list.
77-
/// Next messages will be targed at the PredicateContext that was removed.
77+
/// Next messages will be targeted at the PredicateContext that was removed.
7878
TestResult& popPredicateContext();
7979

8080
bool failed() const;

0 commit comments

Comments
 (0)