Skip to content

Commit 049782d

Browse files
committed
fix a comment
1 parent 7dd9c40 commit 049782d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/encoding/json/encode.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ var (
384384

385385
// newTypeEncoder constructs an encoderFunc for a type.
386386
// The returned encoder only checks CanAddr when allowAddr is true.
387-
func newTypeEncoder(t reflect.Type, allowAddr bool) encoderFunc { // If we have a non-pointer value whose type implements
387+
func newTypeEncoder(t reflect.Type, allowAddr bool) encoderFunc {
388+
// If we have a non-pointer value whose type implements
388389
// Marshaler with a value receiver, then we're better off taking
389390
// the address of the value - otherwise we end up with an
390391
// allocation as we cast the value to an interface.

0 commit comments

Comments
 (0)