summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-07-22 11:09:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-22 22:28:22 (GMT)
commit0dda1d1ec816c613c9c0fd9b55ef0d3b782b84e8 (patch)
tree68e0daee320ba9dd59cd697079e3597ba81c7235
parent95f8ebbfc7997b3114d4f09360501324905c4e6d (diff)
downloadgit-0dda1d1ec816c613c9c0fd9b55ef0d3b782b84e8.zip
git-0dda1d1ec816c613c9c0fd9b55ef0d3b782b84e8.tar.gz
git-0dda1d1ec816c613c9c0fd9b55ef0d3b782b84e8.tar.bz2
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>
-rw-r--r--Documentation/technical/api-string-list.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt
index 92b3ecd..293bb15 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`