diff options
author | Josh Triplett <josh@joshtriplett.org> | 2012-08-12 03:56:15 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2012-08-12 03:56:15 -0700 |
commit | b90202bbdda36d586ac9ea1680b8faf93b58b2fe (patch) | |
tree | 699e347a5f0e633972fc2f04b593acac5ecd8b1b /include/git2 | |
parent | c9d78bde943213f4c2594d1df175336573678b74 (diff) | |
download | libgit2-b90202bbdda36d586ac9ea1680b8faf93b58b2fe.tar.gz |
Fix incorrect array size in example for git_config_get_mapped
In the documentation for git_config_get_mapped, the sample mapping
array uses [3] but has 4 entries. Fix by dropping the size entirely and
letting the compiler figure it out.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 8a36885c..f415fbd9 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -342,7 +342,7 @@ GIT_EXTERN(int) git_config_foreach_match( * * A mapping array looks as follows: * - * git_cvar_map autocrlf_mapping[3] = { + * git_cvar_map autocrlf_mapping[] = { * {GIT_CVAR_FALSE, NULL, GIT_AUTO_CRLF_FALSE}, * {GIT_CVAR_TRUE, NULL, GIT_AUTO_CRLF_TRUE}, * {GIT_CVAR_STRING, "input", GIT_AUTO_CRLF_INPUT}, |