Skip to content

Commit ad73612

Browse files
authored
Merge pull request #524 from handrews/non-negative
Fix positive -> non-negative in text (Relative JSON Pointer)
2 parents 1670890 + a9f90e9 commit ad73612

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

relative-json-pointer.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<section title="Syntax">
8383
<t>
8484
A Relative JSON Pointer is a Unicode string (see RFC 4627,
85-
<xref target="RFC4627">Section 3</xref>), comprising a positive integer,
85+
<xref target="RFC4627">Section 3</xref>), comprising a non-negative integer,
8686
followed by either a '#' (%x23) character or a JSON Pointer
8787
(<xref target="RFC6901">RFC 6901</xref>).
8888
</t>
@@ -98,10 +98,10 @@
9898
</preamble>
9999
<artwork>
100100
<![CDATA[
101-
relative-json-pointer = positive-integer &lt;json-pointer&gt;
102-
relative-json-pointer =/ positive-integer "#"
103-
positive-integer = %x30 / %x31-39 *( %x30-39 )
104-
; "0", or digits without a leading "0"
101+
relative-json-pointer = non-negative-integer &lt;json-pointer&gt;
102+
relative-json-pointer =/ non-negative-integer "#"
103+
non-negative-integer = %x30 / %x31-39 *( %x30-39 )
104+
; "0", or digits without a leading "0"
105105
]]>
106106
</artwork>
107107
<postamble>
@@ -121,8 +121,8 @@
121121
integer value representing an array index.
122122
</t>
123123
<t>
124-
Evaluation begins by processing the positive-integer prefix. This
125-
can be found by taking the longest continuous sequence of decimal
124+
Evaluation begins by processing the non-negative-integer prefix.
125+
This can be found by taking the longest continuous sequence of decimal
126126
digits available, starting from the beginning of the string, taking
127127
the decimal numerical value. If this value is more than zero, then
128128
the following steps are repeated that number of times:

0 commit comments

Comments
 (0)