Skip to content

Commit

Permalink
gitindex/index.go: fix func name in godoc
Browse files Browse the repository at this point in the history
Change-Id: I35d0a86e370bab5296873987bde081a476efc404
  • Loading branch information
sluongng authored and hanwen committed May 25, 2021
1 parent 0314dee commit 43b32ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitindex/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func setTemplatesFromConfig(desc *zoekt.Repository, repoDir string) error {
return nil
}

// SetTemplates fills in templates based on the origin URL.
// SetTemplatesFromOrigin fills in templates based on the origin URL.
func SetTemplatesFromOrigin(desc *zoekt.Repository, u *url.URL) error {
desc.Name = filepath.Join(u.Host, strings.TrimSuffix(u.Path, ".git"))

Expand Down

0 comments on commit 43b32ad

Please sign in to comment.