@matheusbsbs / matheus-bagliano / commits / 0dda1d1ec8
Fork 0

Fix two leftovers from path_list->string_list

In the documentation, where you cannot get compile errors for using the wrong member name, there were two mentions of 'path' left. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jul 22, 2008 at 13:09 UTC 0dda1d1ec816c613c9c0fd9b55ef0d3b782b84e8
1 file changed +2 -2
Documentation/technical/api-string-list.txt
+2 -2
@@ -41,7 +41,7 @@ memset(&list, 0, sizeof(struct string_list));
41 string_list_append("foo", &list);
42 string_list_append("bar", &list);
43 for (i = 0; i < list.nr; i++)
44 - printf("%s\n", list.items[i].path)
44 + printf("%s\n", list.items[i].string)
45 ----
46
47 NOTE: It is more efficient to build an unsorted list and sort it
@@ -113,7 +113,7 @@ Data structures
113
114 * `struct string_list_item`
115
116 -Represents an item of the list. The `path` member is a pointer to the
116 +Represents an item of the list. The `string` member is a pointer to the
117 string, and you may use the `util` member for any purpose, if you want.
118
119 * `struct string_list`