From ad9dafc09dab6b6a9bed2882dcd3b5f97ff5be44 Mon Sep 17 00:00:00 2001 From: Alex Bozhenko Date: Fri, 16 Aug 2024 16:16:51 -0700 Subject: [PATCH] nit --- internal/godoc/dochtml/dochtml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/godoc/dochtml/dochtml.go b/internal/godoc/dochtml/dochtml.go index aca76ff8..df99411a 100644 --- a/internal/godoc/dochtml/dochtml.go +++ b/internal/godoc/dochtml/dochtml.go @@ -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)