Skip to content

Commit ae613eb

Browse files
authored
Merge pull request #31 from kislyuk/patch-1
Fix typos in messages
2 parents 05232a7 + 63b2682 commit ae613eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jsonpointer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __repr__(self):
162162

163163

164164
class JsonPointer(object):
165-
"""A JSON Pointer that can reference parts of an JSON document"""
165+
"""A JSON Pointer that can reference parts of a JSON document"""
166166

167167
# Array indices must not contain:
168168
# leading zeros, signs, spaces, decimals, etc
@@ -179,7 +179,7 @@ def __init__(self, pointer):
179179

180180
parts = pointer.split('/')
181181
if parts.pop(0) != '':
182-
raise JsonPointerException('location must starts with /')
182+
raise JsonPointerException('Location must start with /')
183183

184184
parts = [unescape(part) for part in parts]
185185
self.parts = parts
@@ -217,7 +217,7 @@ def set(self, doc, value, inplace=True):
217217

218218
if len(self.parts) == 0:
219219
if inplace:
220-
raise JsonPointerException('cannot set root in place')
220+
raise JsonPointerException('Cannot set root in place')
221221
return value
222222

223223
if not inplace:

0 commit comments

Comments
 (0)