summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95f8ebb)
raw | patch | inline | side by side (parent: 95f8ebb)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 22 Jul 2008 11:09:47 +0000 (13:09 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 22 Jul 2008 22:28:22 +0000 (15:28 -0700) |
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>
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>
Documentation/technical/api-string-list.txt | patch | blob | history |
diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt
index 92b3ecdae28afa06331382f937fd887dfcca6b15..293bb15d206e71f57e906b33ca27ee05e3429521 100644 (file)
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
* `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`