Skip to contentSkip to conversation

doc: fix typo in tree-walk.h comment

PATCH In review Ayush Jha 2 participants 3 messages Feb 5 – Feb 16

lore
Share & tools
lore

Ayush Jha

author
#0 lore raw

PATCH 1/1 doc: fix typo in tree-walk.h comment

Fix a duplicated word in a comment describing the return value.

No code or behavior change.

---
 tree-walk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tree-walk.h +1 -1
index 29a55328bd..9646c47ac5 100644
@@ -177,7 +177,7 @@ struct traverse_info {
 
 /**
  * Walk trees starting with "tree_oid" to find the entry for "name", and
- * return the the object name and the mode of the found entry via the
+ * return the object name and the mode of the found entry via the
  * "oid" and "mode" parameters.  Return 0 if the entry is found, and -1
  * otherwise.
  */
Signature · 1 line
2.53.0.windows.1
#1 lore raw
Quoted 24 lines · Ayush Jha

Fix a duplicated word in a comment describing the return value.

No code or behavior change.

---
 tree-walk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tree-walk.h +1 -2
index 29a55328bd..9646c47ac5 100644
@@ -177,7 +177,7 @@ struct traverse_info {
 
 /**
  * Walk trees starting with "tree_oid" to find the entry for "name", and
- * return the the object name and the mode of the found entry via the
+ * return the object name and the mode of the found entry via the
  * "oid" and "mode" parameters.  Return 0 if the entry is found, and -1
  * otherwise.
  */
--
Quoted 1 line

2.53.0.windows.1

Nit: The subject line should preferably use 'tree-walk.h: ' instead of 'doc: ' since it is a change to the tree-walk.h file and not 'Documentation'.

Other than that, the change looks good to me. Thanks for your interest in contributing to Git!

Thanks,
Chandra.

author
#2 lore raw

Hi Chandra,

Thank you for pointing that out. You’re absolutely right — the subject line should use “tree-walk.h:” instead of “doc:” since the change is in the header file and not in Documentation.

Would you prefer that I resend the patch with the corrected subject prefix?

Thanks again for the review and guidance.

Best regards,
Ayush

Quoted 36 lines · Chandra Pratap
Quoted 24 lines · Ayush Jha

Fix a duplicated word in a comment describing the return value.

No code or behavior change.

---
 tree-walk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tree-walk.h +1 -2
index 29a55328bd..9646c47ac5 100644
@@ -177,7 +177,7 @@ struct traverse_info {
 
 /**
  * Walk trees starting with "tree_oid" to find the entry for "name", and
- * return the the object name and the mode of the found entry via the
+ * return the object name and the mode of the found entry via the
  * "oid" and "mode" parameters.  Return 0 if the entry is found, and -1
  * otherwise.
  */
--
Quoted 1 line

2.53.0.windows.1

Nit: The subject line should preferably use 'tree-walk.h: ' instead of 'doc: ' since it is a change to the tree-walk.h file and not 'Documentation'.

Other than that, the change looks good to me. Thanks for your interest in contributing to Git!

Thanks,
Chandra.