Commit b7916444d989f2b5ae8aed6c3ebdea3313e8a32e

Vicent Martí 2012-08-13T21:01:24

Merge pull request #867 from joshtriplett/fix-array-size-for-git_config_get_mapped Fix incorrect array size in example for git_config_get_mapped

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/config.h b/include/git2/config.h
index 8a36885..f415fbd 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},