Skip to content

Commit 7de009e

Browse files
committed
✏️ fixing typos #869
1 parent 772bb3c commit 7de009e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/json.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class exception : public std::exception
227227
/*!
228228
@brief exception indicating a parse error
229229
230-
This excpetion is thrown by the library when a parse error occurs. Parse errors
230+
This exception is thrown by the library when a parse error occurs. Parse errors
231231
can occur during the deserialization of JSON text, CBOR, MessagePack, as well
232232
as when using JSON Patch.
233233
@@ -243,7 +243,7 @@ json.exception.parse_error.102 | parse error at 14: missing or wrong low surroga
243243
json.exception.parse_error.103 | parse error: code points above 0x10FFFF are invalid | Unicode supports code points up to 0x10FFFF. Code points above 0x10FFFF are invalid.
244244
json.exception.parse_error.104 | parse error: JSON patch must be an array of objects | [RFC 6902](https://tools.ietf.org/html/rfc6902) requires a JSON Patch document to be a JSON document that represents an array of objects.
245245
json.exception.parse_error.105 | parse error: operation must have string member 'op' | An operation of a JSON Patch document must contain exactly one "op" member, whose value indicates the operation to perform. Its value must be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
246-
json.exception.parse_error.106 | parse error: array index '01' must not begin with '0' | An array index in a JSON Pointer ([RFC 6901](https://tools.ietf.org/html/rfc6901)) may be `0` or any number wihtout a leading `0`.
246+
json.exception.parse_error.106 | parse error: array index '01' must not begin with '0' | An array index in a JSON Pointer ([RFC 6901](https://tools.ietf.org/html/rfc6901)) may be `0` or any number without a leading `0`.
247247
json.exception.parse_error.107 | parse error: JSON pointer must be empty or begin with '/' - was: 'foo' | A JSON Pointer must be a Unicode string containing a sequence of zero or more reference tokens, each prefixed by a `/` character.
248248
json.exception.parse_error.108 | parse error: escape character '~' must be followed with '0' or '1' | In a JSON Pointer, only `~0` and `~1` are valid escape sequences.
249249
json.exception.parse_error.109 | parse error: array index 'one' is not a number | A JSON Pointer array index must be a number.
@@ -3294,7 +3294,7 @@ class parser
32943294
}
32953295

32963296
/*!
3297-
@brief the acutal acceptor
3297+
@brief the actual acceptor
32983298
32993299
@invariant 1. The last token is not yet processed. Therefore, the caller
33003300
of this function must make sure a token has been read.
@@ -4312,7 +4312,7 @@ class json_reverse_iterator : public std::reverse_iterator<Base>
43124312
{
43134313
public:
43144314
using difference_type = std::ptrdiff_t;
4315-
/// shortcut to the reverse iterator adaptor
4315+
/// shortcut to the reverse iterator adapter
43164316
using base_iterator = std::reverse_iterator<Base>;
43174317
/// the reference type for the pointed-to element
43184318
using reference = typename Base::reference;
@@ -8304,7 +8304,7 @@ class basic_json
83048304
@brief create a JSON value
83058305
83068306
This is a "catch all" constructor for all compatible JSON types; that is,
8307-
types for which a `to_json()` method exsits. The constructor forwards the
8307+
types for which a `to_json()` method exists. The constructor forwards the
83088308
parameter @a val to that method (to `json_serializer<U>::to_json` method
83098309
with `U = uncvref_t<CompatibleType>`, to be exact).
83108310
@@ -9027,7 +9027,7 @@ class basic_json
90279027
string | value_t::string
90289028
number (integer) | value_t::number_integer
90299029
number (unsigned integer) | value_t::number_unsigned
9030-
number (foating-point) | value_t::number_float
9030+
number (floating-point) | value_t::number_float
90319031
object | value_t::object
90329032
array | value_t::array
90339033
discarded | value_t::discarded
@@ -10366,7 +10366,7 @@ class basic_json
1036610366
@return copy of the element at key @a key or @a default_value if @a key
1036710367
is not found
1036810368
10369-
@throw type_error.306 if the JSON value is not an objec; in that cases,
10369+
@throw type_error.306 if the JSON value is not an object; in that cases,
1037010370
using `value()` with a key makes no sense.
1037110371
1037210372
@complexity Logarithmic in the size of the container.

0 commit comments

Comments
 (0)