Skip to content

Commit 0dda1d1

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95f8ebb commit 0dda1d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/technical/api-string-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ memset(&list, 0, sizeof(struct string_list));
4141
string_list_append("foo", &list);
4242
string_list_append("bar", &list);
4343
for (i = 0; i < list.nr; i++)
44-
printf("%s\n", list.items[i].path)
44+
printf("%s\n", list.items[i].string)
4545
----
4646

4747
NOTE: It is more efficient to build an unsorted list and sort it
@@ -113,7 +113,7 @@ Data structures
113113

114114
* `struct string_list_item`
115115

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
117117
string, and you may use the `util` member for any purpose, if you want.
118118

119119
* `struct string_list`

0 commit comments

Comments
 (0)