From 117fe2e08d2fb385e4febed020b834d2d8e4358a Mon Sep 17 00:00:00 2001 From: cui fliter Date: Tue, 14 Feb 2023 22:42:38 +0800 Subject: all: fix some comments Change-Id: I16ec916b47de2f417b681c8abff5a1375ddf491b Reviewed-on: https://go-review.googlesource.com/c/go/+/468055 Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- src/os/tempfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os') diff --git a/src/os/tempfile.go b/src/os/tempfile.go index 3be3d13dfb..99f65c625a 100644 --- a/src/os/tempfile.go +++ b/src/os/tempfile.go @@ -117,7 +117,7 @@ func joinPath(dir, name string) string { return dir + string(PathSeparator) + name } -// LastIndexByte from the strings package. +// lastIndex from the strings package. func lastIndex(s string, sep byte) int { for i := len(s) - 1; i >= 0; i-- { if s[i] == sep { -- cgit v1.3