From: Johannes Schindelin Date: Tue, 22 Jul 2008 11:09:47 +0000 (+0200) Subject: Fix two leftovers from path_list->string_list X-Git-Tag: v1.6.0-rc1~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0dda1d1;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt index 92b3ecdae..293bb15d2 100644 --- a/Documentation/technical/api-string-list.txt +++ b/Documentation/technical/api-string-list.txt @@ -41,7 +41,7 @@ memset(&list, 0, sizeof(struct string_list)); string_list_append("foo", &list); string_list_append("bar", &list); for (i = 0; i < list.nr; i++) - printf("%s\n", list.items[i].path) + printf("%s\n", list.items[i].string) ---- NOTE: It is more efficient to build an unsorted list and sort it @@ -113,7 +113,7 @@ Data structures * `struct string_list_item` -Represents an item of the list. The `path` member is a pointer to the +Represents an item of the list. The `string` member is a pointer to the string, and you may use the `util` member for any purpose, if you want. * `struct string_list`