Skip to content

Commit 8349180

Browse files
authored
Fix spelling (#3125)
1 parent 5c08a52 commit 8349180

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

include/nlohmann/detail/input/binary_reader.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ enum class cbor_tag_handler_t
4242
4343
@note from https://stackoverflow.com/a/1001328/266378
4444
*/
45-
static inline bool little_endianess(int num = 1) noexcept
45+
static inline bool little_endianness(int num = 1) noexcept
4646
{
4747
return *reinterpret_cast<char*>(&num) == 1;
4848
}
@@ -2341,7 +2341,7 @@ class binary_reader
23412341
23422342
@return whether conversion completed
23432343
2344-
@note This function needs to respect the system's endianess, because
2344+
@note This function needs to respect the system's endianness, because
23452345
bytes in CBOR, MessagePack, and UBJSON are stored in network order
23462346
(big endian) and therefore need reordering on little endian systems.
23472347
*/
@@ -2514,8 +2514,8 @@ class binary_reader
25142514
/// the number of characters read
25152515
std::size_t chars_read = 0;
25162516

2517-
/// whether we can assume little endianess
2518-
const bool is_little_endian = little_endianess();
2517+
/// whether we can assume little endianness
2518+
const bool is_little_endian = little_endianness();
25192519

25202520
/// the SAX parser
25212521
json_sax_t* sax = nullptr;

include/nlohmann/detail/input/input_adapters.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) /
450450
}
451451

452452
// This class only handles inputs of input_buffer_adapter type.
453-
// It's required so that expressions like {ptr, len} can be implicitely casted
453+
// It's required so that expressions like {ptr, len} can be implicitly casted
454454
// to the correct adapter.
455455
class span_input_adapter
456456
{

include/nlohmann/detail/output/binary_writer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ class binary_writer
15351535
@tparam OutputIsLittleEndian Set to true if output data is
15361536
required to be little endian
15371537
1538-
@note This function needs to respect the system's endianess, because bytes
1538+
@note This function needs to respect the system's endianness, because bytes
15391539
in CBOR, MessagePack, and UBJSON are stored in network order (big
15401540
endian) and therefore need reordering on little endian systems.
15411541
*/
@@ -1625,8 +1625,8 @@ class binary_writer
16251625
}
16261626

16271627
private:
1628-
/// whether we can assume little endianess
1629-
const bool is_little_endian = little_endianess();
1628+
/// whether we can assume little endianness
1629+
const bool is_little_endian = little_endianness();
16301630

16311631
/// the output
16321632
output_adapter_t<CharType> oa = nullptr;

include/nlohmann/json.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
908908
- If a subtype is given and the binary array contains exactly 1, 2, 4, 8,
909909
or 16 elements, the fixext family (fixext1, fixext2, fixext4, fixext8)
910910
is used. For other sizes, the ext family (ext8, ext16, ext32) is used.
911-
The subtype is then added as singed 8-bit integer.
911+
The subtype is then added as signed 8-bit integer.
912912
- If no subtype is given, the bin family (bin8, bin16, bin32) is used.
913913
- BSON
914914
- If a subtype is given, it is used and added as unsigned 8-bit integer.
@@ -5021,7 +5021,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
50215021
`key()` returns an empty string.
50225022
50235023
@warning Using `items()` on temporary objects is dangerous. Make sure the
5024-
object's lifetime exeeds the iteration. See
5024+
object's lifetime exceeds the iteration. See
50255025
<https://github.com/nlohmann/json/issues/2040> for more
50265026
information.
50275027

single_include/nlohmann/json.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5875,7 +5875,7 @@ auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) /
58755875
}
58765876

58775877
// This class only handles inputs of input_buffer_adapter type.
5878-
// It's required so that expressions like {ptr, len} can be implicitely casted
5878+
// It's required so that expressions like {ptr, len} can be implicitly casted
58795879
// to the correct adapter.
58805880
class span_input_adapter
58815881
{
@@ -8430,7 +8430,7 @@ enum class cbor_tag_handler_t
84308430

84318431
@note from https://stackoverflow.com/a/1001328/266378
84328432
*/
8433-
static inline bool little_endianess(int num = 1) noexcept
8433+
static inline bool little_endianness(int num = 1) noexcept
84348434
{
84358435
return *reinterpret_cast<char*>(&num) == 1;
84368436
}
@@ -10729,7 +10729,7 @@ class binary_reader
1072910729

1073010730
@return whether conversion completed
1073110731

10732-
@note This function needs to respect the system's endianess, because
10732+
@note This function needs to respect the system's endianness, because
1073310733
bytes in CBOR, MessagePack, and UBJSON are stored in network order
1073410734
(big endian) and therefore need reordering on little endian systems.
1073510735
*/
@@ -10902,8 +10902,8 @@ class binary_reader
1090210902
/// the number of characters read
1090310903
std::size_t chars_read = 0;
1090410904

10905-
/// whether we can assume little endianess
10906-
const bool is_little_endian = little_endianess();
10905+
/// whether we can assume little endianness
10906+
const bool is_little_endian = little_endianness();
1090710907

1090810908
/// the SAX parser
1090910909
json_sax_t* sax = nullptr;
@@ -15202,7 +15202,7 @@ class binary_writer
1520215202
@tparam OutputIsLittleEndian Set to true if output data is
1520315203
required to be little endian
1520415204

15205-
@note This function needs to respect the system's endianess, because bytes
15205+
@note This function needs to respect the system's endianness, because bytes
1520615206
in CBOR, MessagePack, and UBJSON are stored in network order (big
1520715207
endian) and therefore need reordering on little endian systems.
1520815208
*/
@@ -15292,8 +15292,8 @@ class binary_writer
1529215292
}
1529315293

1529415294
private:
15295-
/// whether we can assume little endianess
15296-
const bool is_little_endian = little_endianess();
15295+
/// whether we can assume little endianness
15296+
const bool is_little_endian = little_endianness();
1529715297

1529815298
/// the output
1529915299
output_adapter_t<CharType> oa = nullptr;
@@ -18409,7 +18409,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
1840918409
- If a subtype is given and the binary array contains exactly 1, 2, 4, 8,
1841018410
or 16 elements, the fixext family (fixext1, fixext2, fixext4, fixext8)
1841118411
is used. For other sizes, the ext family (ext8, ext16, ext32) is used.
18412-
The subtype is then added as singed 8-bit integer.
18412+
The subtype is then added as signed 8-bit integer.
1841318413
- If no subtype is given, the bin family (bin8, bin16, bin32) is used.
1841418414
- BSON
1841518415
- If a subtype is given, it is used and added as unsigned 8-bit integer.
@@ -22522,7 +22522,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
2252222522
`key()` returns an empty string.
2252322523

2252422524
@warning Using `items()` on temporary objects is dangerous. Make sure the
22525-
object's lifetime exeeds the iteration. See
22525+
object's lifetime exceeds the iteration. See
2252622526
<https://github.com/nlohmann/json/issues/2040> for more
2252722527
information.
2252822528

0 commit comments

Comments
 (0)