Skip to content

Commit e35f635

Browse files
committed
Merge pull request #11924 from geekvest:master
PiperOrigin-RevId: 783278023
2 parents 8b2eb5f + c8ac531 commit e35f635

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/go_generics/globals/globals_visitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ func (v *globalsVisitor) visitFuncDecl(d *ast.FuncDecl) {
517517
v.popScope()
518518
}
519519

520-
// globalsFromDecl is called in the first, and adds symbols to global scope.
520+
// globalsFromGenDecl is called in the first, and adds symbols to global scope.
521521
func (v *globalsVisitor) globalsFromGenDecl(d *ast.GenDecl) {
522522
switch d.Tok {
523523
case token.IMPORT:

tools/go_marshal/gomarshal/generator_interfaces.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (g *interfaceGenerator) typeName() string {
5353
return g.t.Name.Name
5454
}
5555

56-
// newinterfaceGenerator creates a new interface generator.
56+
// newInterfaceGenerator creates a new interface generator.
5757
func newInterfaceGenerator(t *ast.TypeSpec, r string, fset *token.FileSet) *interfaceGenerator {
5858
g := &interfaceGenerator{
5959
t: t,
@@ -188,7 +188,7 @@ func (g *interfaceGenerator) emitCastToByteSlice(srcPtr, dstVar, lenExpr string)
188188
g.emit("hdr.Cap = %s\n\n", lenExpr)
189189
}
190190

191-
// emitCastToByteSlice unsafely casts a slice with elements of an arbitrary type
191+
// emitCastSliceToByteSlice unsafely casts a slice with elements of an arbitrary type
192192
// to a byte slice. As part of the cast, the byte slice is made to look
193193
// independent of the src slice by bypassing escape analysis. This means the
194194
// byte slice can be used without causing the source to escape. The caller is

tools/go_marshal/test/marshal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func TestLimitedMarshalling(t *testing.T) {
333333
}
334334
}
335335

336-
// TestLimitedMarshalling verifies marshalling/unmarshalling of slices of
336+
// TestLimitedSliceMarshalling verifies marshalling/unmarshalling of slices of
337337
// marshallable types succeed when the underlying copy in/out operations
338338
// partially succeed.
339339
func TestLimitedSliceMarshalling(t *testing.T) {

0 commit comments

Comments
 (0)