Skip to content

Commit

Permalink
Fix two leftovers from path_list->string_list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jul 22, 2008
1 parent 95f8ebb commit 0dda1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/technical/api-string-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 0dda1d1

Please sign in to comment.