Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbozhenko committed Aug 16, 2024
1 parent a1cd5a3 commit ad9dafc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/godoc/dochtml/dochtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func buildNoteHeaders(notes map[string][]*doc.Note) map[string]noteHeader {
// versionedPkgPath transforms package paths to contain the same version as the
// current module if the package belongs to the module.
func versionedPkgPath(pkgPath string, modInfo *ModuleInfo) string {
if modInfo != nil && modInfo.ModulePath == "std" {
if modInfo != nil && modInfo.ModulePath == stdlib.ModulePath {
tag, err := stdlib.TagForVersion(modInfo.ResolvedVersion)
if err != nil {
log.Errorf(context.TODO(), "goTagForVersion(%q): %v", modInfo.ResolvedVersion, err)
Expand Down

0 comments on commit ad9dafc

Please sign in to comment.