Commit 2744806f32c895feb2ec241320d2b64ae58e992c

Vicent Marti 2011-11-22T02:10:41

tree: Fix documentation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/include/git2/tree.h b/include/git2/tree.h
index bd89de3..8ac8b16 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -308,9 +308,10 @@ enum git_treewalk_mode {
  * @param tree The tree to walk
  * @param callback Function to call on each tree entry
  * @param mode Traversal mode (pre or post-order)
+ * @param payload Opaque pointer to be passed on each callback
  * @return GIT_SUCCESS or an error code
  */
-GIT_EXTERN(int) git_tree_walk(git_tree *walk, git_treewalk_cb callback, int mode, void *payload);
+GIT_EXTERN(int) git_tree_walk(git_tree *tree, git_treewalk_cb callback, int mode, void *payload);
 
 /** @} */
 GIT_END_DECL