Skip to content

Commit

Permalink
godoc: fix some comments
Browse files Browse the repository at this point in the history
Change-Id: Ia43fc5183e97d7d612216722e5255734d28ac508
GitHub-Last-Rev: aa1b6bb
GitHub-Pull-Request: #403
Reviewed-on: https://go-review.googlesource.com/c/tools/+/436455
Reviewed-by: Ian Lance Taylor <[email protected]>
Auto-Submit: Dmitri Shuralyov <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
gopls-CI: kokoro <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Dmitri Shuralyov <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Oct 4, 2022
1 parent 7f79a02 commit dc88e7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions godoc/godoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func srcToPkgLinkFunc(relpath string) string {
return fmt.Sprintf(`<a href="/%s">%s</a>`, relpath, relpath[len("pkg/"):])
}

// srcBreadcrumbFun converts each segment of relpath to a HTML <a>.
// srcBreadcrumbFunc converts each segment of relpath to a HTML <a>.
// Each segment links to its corresponding src directories.
func srcBreadcrumbFunc(relpath string) string {
segments := strings.Split(relpath, "/")
Expand Down Expand Up @@ -663,7 +663,7 @@ func (p *Presentation) example_suffixFunc(name string) string {
return suffix
}

// implements_html returns the "> Implements" toggle for a package-level named type.
// implements_htmlFunc returns the "> Implements" toggle for a package-level named type.
// Its contents are populated from JSON data by client-side JS at load time.
func (p *Presentation) implements_htmlFunc(info *PageInfo, typeName string) string {
if p.ImplementsHTML == nil {
Expand All @@ -681,7 +681,7 @@ func (p *Presentation) implements_htmlFunc(info *PageInfo, typeName string) stri
return buf.String()
}

// methodset_html returns the "> Method set" toggle for a package-level named type.
// methodset_htmlFunc returns the "> Method set" toggle for a package-level named type.
// Its contents are populated from JSON data by client-side JS at load time.
func (p *Presentation) methodset_htmlFunc(info *PageInfo, typeName string) string {
if p.MethodSetHTML == nil {
Expand All @@ -699,7 +699,7 @@ func (p *Presentation) methodset_htmlFunc(info *PageInfo, typeName string) strin
return buf.String()
}

// callgraph_html returns the "> Call graph" toggle for a package-level func.
// callgraph_htmlFunc returns the "> Call graph" toggle for a package-level func.
// Its contents are populated from JSON data by client-side JS at load time.
func (p *Presentation) callgraph_htmlFunc(info *PageInfo, recv, name string) string {
if p.CallGraphHTML == nil {
Expand Down

0 comments on commit dc88e7b

Please sign in to comment.