diff options
author | Johan Abildskov <randomsort@gmail.com> | 2018-08-27 09:23:02 +0200 |
---|---|---|
committer | Johan Abildskov <randomsort@gmail.com> | 2018-08-27 09:23:02 +0200 |
commit | c0b2e5256ca3580b8c0fd2e6b04ae1c27d692e2e (patch) | |
tree | e8e7e0e8a2c8021c215691161779965e289d11a4 | |
parent | 4bd2a508fbb100052b42a5aa35d829514d69a0fb (diff) | |
download | libgit2-c0b2e5256ca3580b8c0fd2e6b04ae1c27d692e2e.tar.gz |
Add two words to clarify
-rw-r--r-- | docs/error-handling.md | 2 | ||||
-rw-r--r-- | include/git2/errors.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/error-handling.md b/docs/error-handling.md index 62fd55601..0dba01cd9 100644 --- a/docs/error-handling.md +++ b/docs/error-handling.md @@ -118,7 +118,7 @@ The public error API Otherwise this should return a `git_error` object indicating the class of error and the error message that was generated by the library. Do not use this function unless the prior call to a libgit2 API - returned an error, as it can give misleading results. + returned an error, as it can otherwise give misleading results. libgit2's error strings are not cleared aggressively, and this function may return an error string that reflects a prior error, possibly even reflecting internal state. diff --git a/include/git2/errors.h b/include/git2/errors.h index 5ae58bd64..676434f4a 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -113,7 +113,7 @@ typedef enum { * * The default behaviour of this function is to return NULL if no previous error has occurred. * However, libgit2's error strings are not cleared aggressively, so a prior - * (unrelated) error may be returned. This can avoided by only calling + * (unrelated) error may be returned. This can be avoided by only calling * this function if the prior call to a libgit2 API returned an error. * * @return A git_error object. |