From fca43a8436f2dbec981fb002c6ba31fe9ff89dd6 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Tue, 8 Jul 2025 14:53:13 +0800 Subject: [PATCH] internal: make struct comment match struct name Change-Id: I85a4051bd3413bd843b17d22cf9120f615cfe8db Reviewed-on: https://go-review.googlesource.com/c/go/+/686295 Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Auto-Submit: Carlos Amedee Reviewed-by: Carlos Amedee --- src/internal/abi/type.go | 2 +- src/internal/goroot/gc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/abi/type.go b/src/internal/abi/type.go index 4671b0da28..786fb9cd66 100644 --- a/src/internal/abi/type.go +++ b/src/internal/abi/type.go @@ -483,7 +483,7 @@ type SliceType struct { Elem *Type // slice element type } -// funcType represents a function type. +// FuncType represents a function type. // // A *Type for each in and out parameter is stored in an array that // directly follows the funcType (and possibly its uncommonType). So diff --git a/src/internal/goroot/gc.go b/src/internal/goroot/gc.go index 6b37dfa4c7..133d076391 100644 --- a/src/internal/goroot/gc.go +++ b/src/internal/goroot/gc.go @@ -37,7 +37,7 @@ func IsStandardPackage(goroot, compiler, path string) bool { } } -// gccgoSearch holds the gccgo search directories. +// gccgoDirs holds the gccgo search directories. type gccgoDirs struct { once sync.Once dirs []string -- 2.51.0