summaryrefslogtreecommitdiffstats
path: root/models/issue_label.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_label.go')
-rw-r--r--models/issue_label.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_label.go b/models/issue_label.go
index ffdaa072c8..39805ba80d 100644
--- a/models/issue_label.go
+++ b/models/issue_label.go
@@ -149,7 +149,7 @@ func GetLabelByID(id int64) (*Label, error) {
return getLabelInRepoByID(x, 0, id)
}
-// GetLabelInRepoByID returns a label by ID in given repository.
+// GetLabelInRepoByName returns a label by name in given repository.
func GetLabelInRepoByName(repoID int64, labelName string) (*Label, error) {
return getLabelInRepoByName(x, repoID, labelName)
}