Skip to content

Commit ce1b96b

Browse files
cuishuangfindleyr
authored andcommitted
all: fix some comments
Change-Id: Id334943c9be6e035d52a8d8a4bd26e0e31ae9791 Reviewed-on: https://go-review.googlesource.com/c/tools/+/492578 Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Tim King <[email protected]> Run-TryBot: shuang cui <[email protected]> Run-TryBot: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]> gopls-CI: kokoro <[email protected]>
1 parent 0500fd4 commit ce1b96b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

cmd/guru/guru.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func deref(typ types.Type) types.Type {
337337
// - a QueryPos, denoting the extent of the user's query.
338338
// - nil, meaning no position at all.
339339
//
340-
// The output format is is compatible with the 'gnu'
340+
// The output format is compatible with the 'gnu'
341341
// compilation-error-regexp in Emacs' compilation mode.
342342
func fprintf(w io.Writer, fset *token.FileSet, pos interface{}, format string, args ...interface{}) {
343343
var start, end token.Pos

cmd/present/static/notes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function toggleNotesWindow() {
2626
initNotes();
2727
}
2828

29-
// Create an unique key for the local storage so we don't mix the
29+
// Create a unique key for the local storage so we don't mix the
3030
// destSlide of different presentations. For golang.org/issue/24688.
3131
function destSlideKey() {
3232
var key = '';

go/analysis/passes/ifaceassert/parameterized.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (w *tpWalker) isParameterized(typ types.Type) (res bool) {
6767
// of a generic function type (or an interface method) that is
6868
// part of the type we're testing. We don't care about these type
6969
// parameters.
70-
// Similarly, the receiver of a method may declare (rather then
70+
// Similarly, the receiver of a method may declare (rather than
7171
// use) type parameters, we don't care about those either.
7272
// Thus, we only need to look at the input and result parameters.
7373
return w.isParameterized(t.Params()) || w.isParameterized(t.Results())

go/analysis/passes/printf/printf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func checkPrintfFwd(pass *analysis.Pass, w *printfWrapper, call *ast.CallExpr, k
278278
// print/printf function can take, adding an ellipsis
279279
// would break the program. For example:
280280
//
281-
// func foo(arg1 string, arg2 ...interface{} {
281+
// func foo(arg1 string, arg2 ...interface{}) {
282282
// fmt.Printf("%s %v", arg1, arg2)
283283
// }
284284
return

go/ssa/parameterized.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (w *tpWalker) isParameterized(typ types.Type) (res bool) {
6363
// of a generic function type (or an interface method) that is
6464
// part of the type we're testing. We don't care about these type
6565
// parameters.
66-
// Similarly, the receiver of a method may declare (rather then
66+
// Similarly, the receiver of a method may declare (rather than
6767
// use) type parameters, we don't care about those either.
6868
// Thus, we only need to look at the input and result parameters.
6969
return w.isParameterized(t.Params()) || w.isParameterized(t.Results())

godoc/dirtrees.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (c *Corpus) newDirectory(root string, maxDepth int) *Directory {
220220
// The root could be a symbolic link so use Stat not Lstat.
221221
d, err := c.fs.Stat(root)
222222
// If we fail here, report detailed error messages; otherwise
223-
// is is hard to see why a directory tree was not built.
223+
// is hard to see why a directory tree was not built.
224224
switch {
225225
case err != nil:
226226
log.Printf("newDirectory(%s): %s", root, err)

gopls/internal/lsp/cache/check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ type (
322322
// forEachPackage does a pre- and post- order traversal of the packages
323323
// specified by ids using the provided pre and post functions.
324324
//
325-
// The pre func is is optional. If set, pre is evaluated after the package
325+
// The pre func is optional. If set, pre is evaluated after the package
326326
// handle has been constructed, but before type-checking. If pre returns false,
327327
// type-checking is skipped for this package handle.
328328
//

0 commit comments

Comments
 (0)