Skip to content

Commit 7326157

Browse files
committed
readme
1 parent e6d2b54 commit 7326157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ func (mt MyType) ResolveJSONPointer(ptr *jsonpointer.JSONPointer, op Operation)
148148

149149
## Errors
150150

151-
All errors returned from `Resolve`, `Assign`, and `Delete` will implement `Error`. A convenience method `AsError` exists to help extract out the details.
151+
All errors returned from `Resolve`, `Assign`, and `Delete` will implement `Error`. A convenience function `AsError` exists to help extract out the details.
152152

153-
Depending on the cause, the error could also be `KeyError`, `IndexError`, `FieldError` with additional details. All have corresponding `As{Error}` methods.
153+
Depending on the cause, the error could also be `KeyError`, `IndexError`, `FieldError` with additional details. All have corresponding `As{Error}` functions.
154154

155155
Finally, all errors have associated Err instances that are wrapped, such as `ErrMalformedToken`, `ErrInvalidKeyType`, and so on.
156156

0 commit comments

Comments
 (0)