Merge pull request #5348 from rcjsuen/patch-2 Correct typo in name of referenced parameter
diff --git a/include/git2/branch.h b/include/git2/branch.h
index 68fe402..ba62359 100644
--- a/include/git2/branch.h
+++ b/include/git2/branch.h
@@ -211,7 +211,7 @@ GIT_EXTERN(int) git_branch_upstream(
/**
* Set a branch's upstream branch
*
- * This will update the configuration to set the branch named `name` as the upstream of `branch`.
+ * This will update the configuration to set the branch named `branch_name` as the upstream of `branch`.
* Pass a NULL name to unset the upstream information.
*
* @note the actual tracking reference must have been already created for the