Skip to content

Commit d80d86b

Browse files
committedAug 25, 2020
Fix typo in the comment
1 parent 409d916 commit d80d86b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/encoding/json/encode.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,8 @@ func (se sliceEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
871871
if e.ptrLevel++; e.ptrLevel > startDetectingCyclesAfter {
872872
// We're a large number of nested ptrEncoder.encode calls deep;
873873
// start checking if we've run into a pointer cycle.
874-
// Here we use a struct to record the pointer of the first element and the length.
874+
// Here we use a struct to memorize the pointer to the first element of the slice
875+
// and its length.
875876
ptr := struct {
876877
ptr uintptr
877878
len int

0 commit comments

Comments
 (0)
Please sign in to comment.