fix some comments

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter 2023-04-25 15:54:49 +08:00 committed by Alessandro Arzilli
parent a61ccea65a
commit e24a7b1174
2 changed files with 3 additions and 2 deletions

@ -2,6 +2,7 @@ package proc
import (
"errors"
"github.com/go-delve/delve/pkg/dwarf/op"
)
@ -17,7 +18,7 @@ type Thread interface {
// variable returned may or may not change to reflect the new CPU status
// when the thread is resumed or the registers are changed by calling
// SetPC/SetSP/etc.
// To insure that the the returned variable won't change call the Copy
// To insure that the returned variable won't change call the Copy
// method of Registers.
Registers() (Registers, error)

@ -1839,7 +1839,7 @@ func (v *Variable) writeZero() error {
return err
}
// writeInterface writes the empty interface of type typeAddr and data as the data field.
// writeEmptyInterface writes the empty interface of type typeAddr and data as the data field.
func (v *Variable) writeEmptyInterface(typeAddr uint64, data *Variable) error {
dstType, dstData, _ := v.readInterface()
if v.Unreadable != nil {