Skip to content

Commit

Permalink
internal/gocore: fix some typos in comments
Browse files Browse the repository at this point in the history
Change-Id: I62aa60953035e5ee68e7c0b87b44579b2b23228b
GitHub-Last-Rev: 03db157
GitHub-Pull-Request: #20
Reviewed-on: https://go-review.googlesource.com/c/debug/+/580295
Reviewed-by: Keith Randall <[email protected]>
Auto-Submit: Keith Randall <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
  • Loading branch information
racequite authored and gopherbot committed Apr 19, 2024
1 parent 598fefa commit d315ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/gocore/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func Core(proc *core.Process) (p *Process, err error) {
// changes, making the difference difficult to detect. As a workaround,
// we check on the version explicitly.
//
// Go 1.17 added runtime._func.flag, so use that as a sentinal for this
// Go 1.17 added runtime._func.flag, so use that as a sentinel for this
// version.
p.is117OrGreater = p.findType("runtime._func").HasField("flag")

Expand Down
2 changes: 1 addition & 1 deletion internal/gocore/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (p *Process) runtimeType2Type(a core.Address, d core.Address) *Type {
if d != 0 && len(candidates) > 1 && !ifaceIndir(a, p) {
ptr := p.proc.ReadPtr(d)
obj, off := p.FindObject(ptr)
// only usefull while it point to the head of an object,
// only useful while it point to the head of an object,
// otherwise, the GC object size should bigger than the size of the type.
if obj != 0 && off == 0 {
sz := p.Size(obj)
Expand Down

0 comments on commit d315ade

Please sign in to comment.