Skip to content

Commit 6b2ed0d

Browse files
authored
proc: fix typos in errors and comments (#3852)
1 parent 844712a commit 6b2ed0d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎pkg/proc/evalop/evalcompile.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (ctx *compileCtx) depthCheck(endDepth int) error {
234234
debugPinnerSeen = true
235235
case *CallInjectionComplete:
236236
if op.DoPinning && !debugPinnerSeen {
237-
err = fmt.Errorf("internal debugger error: pinning call injection seen before call to %s at instrution %d", DebugPinnerFunctionName, i)
237+
err = fmt.Errorf("internal debugger error: pinning call injection seen before call to %s at instruction %d", DebugPinnerFunctionName, i)
238238
}
239239
}
240240
if err != nil {

‎pkg/proc/proc_general_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestIssue3760(t *testing.T) {
4242
t.Fatalf("should contain it")
4343
}
4444
if mem.contains(0xfffffffffffffff0, 16) {
45-
t.Fatalf("shoud be false")
45+
t.Fatalf("should be false")
4646
}
4747
cm := cacheMemory(nil, 0xffffffffffffffff, 1)
4848
if cm != nil {

‎pkg/proc/target_exec.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ func setStepIntoNewProcBreakpoint(p *Target, sameGCond ast.Expr) {
12771277
}
12781278

12791279
// We don't want to use startpc directly because it will be an
1280-
// autogenerated wrapper on some versions of Go. Addditionally, once we
1280+
// autogenerated wrapper on some versions of Go. Additionally, once we
12811281
// have the correct function we must also skip to prologue.
12821282
startfn := p.BinInfo().PCToFunc(uint64(startpc))
12831283
if startfn2, _ := skipAutogeneratedWrappersIn(p, startfn, uint64(startpc), true); startfn2 != nil {

‎pkg/proc/types.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func dwarfToRuntimeType(bi *BinaryInfo, mem MemoryReadWriter, typ godwarf.Type)
207207
kindv = _type.loadFieldNamed("Kind_")
208208
}
209209
if kindv == nil {
210-
return 0, 0, false, fmt.Errorf("unreadable interace type (no kind field)")
210+
return 0, 0, false, fmt.Errorf("unreadable interface type (no kind field)")
211211
}
212212
if kindv.Unreadable != nil || kindv.Kind != reflect.Uint {
213213
return 0, 0, false, fmt.Errorf("unreadable interface type: %v", kindv.Unreadable)

0 commit comments

Comments
 (0)