From b419db6c15519a29ff3d7d2e56d8f115204f8c5d Mon Sep 17 00:00:00 2001 From: Marcel Meyer Date: Thu, 19 Jan 2023 22:26:15 +0000 Subject: all: fix typos in go file comments This is the second round to look for spelling mistakes. This time the manual sifting of the result list was made easier by filtering out capitalized and camelcase words. grep -r --include '*.go' -E '^// .*$' . | aspell list | grep -E -x '[A-Za-z]{1}[a-z]*' | sort | uniq This PR will be imported into Gerrit with the title and first comment (this text) used to generate the subject and body of the Gerrit change. Change-Id: Ie8a2092aaa7e1f051aa90f03dbaf2b9aaf5664a9 GitHub-Last-Rev: fc2bd6e0c51652f13a7588980f1408af8e6080f5 GitHub-Pull-Request: golang/go#57737 Reviewed-on: https://go-review.googlesource.com/c/go/+/461595 Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Robert Griesemer --- src/internal/types/testdata/check/typeinst0.go | 2 +- src/internal/types/testdata/check/typeparams.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/internal') diff --git a/src/internal/types/testdata/check/typeinst0.go b/src/internal/types/testdata/check/typeinst0.go index 0f62283f02..bbcdaec04a 100644 --- a/src/internal/types/testdata/check/typeinst0.go +++ b/src/internal/types/testdata/check/typeinst0.go @@ -19,7 +19,7 @@ type T2[P any] struct { type List[P any] []P // Alias type declarations cannot have type parameters. -// Issue #46477 proposses to change that. +// Issue #46477 proposes to change that. type A1[P any] = /* ERROR "cannot be alias" */ struct{} // Pending clarification of #46477 we disallow aliases diff --git a/src/internal/types/testdata/check/typeparams.go b/src/internal/types/testdata/check/typeparams.go index 9a570e7e66..9f06b0888d 100644 --- a/src/internal/types/testdata/check/typeparams.go +++ b/src/internal/types/testdata/check/typeparams.go @@ -354,7 +354,7 @@ func _[P any]() { } // corner case for type inference -// (was bug: after instanting f11, the type-checker didn't mark f11 as non-generic) +// (was bug: after instantiating f11, the type-checker didn't mark f11 as non-generic) func f11[T any]() {} -- cgit v1.3