mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 10:50:26 +00:00
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.
This commit is contained in:
parent
c9d78bde94
commit
b90202bbdd
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user