aboutsummaryrefslogtreecommitdiffstats
path: root/entity/refs.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-03-10 16:37:45 +0100
committerGitHub <noreply@github.com>2022-03-10 16:37:45 +0100
commitbf9c7e00d022d0a0210dd5e2b8c3e7d38de64099 (patch)
tree956495036e383caab11006239e31e591436a33cd /entity/refs.go
parentdf55cc49a85eaf3a2d3c2ceb1fbcccac19fa6eb8 (diff)
parentb11679bc80b115c61a5cdee8ff8b5f8f1f69533d (diff)
downloadgit-bug-bf9c7e00d022d0a0210dd5e2b8c3e7d38de64099.tar.gz
Merge pull request #762 from MichaelMure/fix-comment
Fix a bunch of comments and documentations
Diffstat (limited to 'entity/refs.go')
-rw-r--r--entity/refs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/entity/refs.go b/entity/refs.go
index 070d4dba..6ba505b9 100644
--- a/entity/refs.go
+++ b/entity/refs.go
@@ -13,7 +13,7 @@ func RefsToIds(refs []string) []Id {
return ids
}
-// RefsToIds parse a git reference and return the corresponding Entity's Id.
+// RefToId parse a git reference and return the corresponding Entity's Id.
func RefToId(ref string) Id {
split := strings.Split(ref, "/")
return Id(split[len(split)-1])