Skip to content

Commit c0b2e52

Browse files
committed
Add two words to clarify
1 parent 4bd2a50 commit c0b2e52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The public error API
118118
Otherwise this should return a `git_error` object indicating the class
119119
of error and the error message that was generated by the library.
120120
Do not use this function unless the prior call to a libgit2 API
121-
returned an error, as it can give misleading results.
121+
returned an error, as it can otherwise give misleading results.
122122
libgit2's error strings are not cleared aggressively,
123123
and this function may return an error string that reflects a prior error,
124124
possibly even reflecting internal state.

include/git2/errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef enum {
113113
*
114114
* The default behaviour of this function is to return NULL if no previous error has occurred.
115115
* However, libgit2's error strings are not cleared aggressively, so a prior
116-
* (unrelated) error may be returned. This can avoided by only calling
116+
* (unrelated) error may be returned. This can be avoided by only calling
117117
* this function if the prior call to a libgit2 API returned an error.
118118
*
119119
* @return A git_error object.

0 commit comments

Comments
 (0)