mirror of
https://github.com/golang/go
synced 2024-11-23 11:50:09 -07:00
Fix typo in the comment
This commit is contained in:
parent
409d9161bf
commit
d80d86b4c3
@ -871,7 +871,8 @@ func (se sliceEncoder) encode(e *encodeState, v reflect.Value, opts encOpts) {
|
||||
if e.ptrLevel++; e.ptrLevel > startDetectingCyclesAfter {
|
||||
// We're a large number of nested ptrEncoder.encode calls deep;
|
||||
// start checking if we've run into a pointer cycle.
|
||||
// Here we use a struct to record the pointer of the first element and the length.
|
||||
// Here we use a struct to memorize the pointer to the first element of the slice
|
||||
// and its length.
|
||||
ptr := struct {
|
||||
ptr uintptr
|
||||
len int
|
||||
|
Loading…
Reference in New Issue
Block a user