Skip to content

Commit ad9dafc

Browse files
committed
nit
1 parent a1cd5a3 commit ad9dafc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/godoc/dochtml/dochtml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func buildNoteHeaders(notes map[string][]*doc.Note) map[string]noteHeader {
446446
// versionedPkgPath transforms package paths to contain the same version as the
447447
// current module if the package belongs to the module.
448448
func versionedPkgPath(pkgPath string, modInfo *ModuleInfo) string {
449-
if modInfo != nil && modInfo.ModulePath == "std" {
449+
if modInfo != nil && modInfo.ModulePath == stdlib.ModulePath {
450450
tag, err := stdlib.TagForVersion(modInfo.ResolvedVersion)
451451
if err != nil {
452452
log.Errorf(context.TODO(), "goTagForVersion(%q): %v", modInfo.ResolvedVersion, err)

0 commit comments

Comments
 (0)