Fix comment typos

This commit is contained in:
Derek Parker
2015-07-16 13:07:34 -05:00
parent 1727df4b1b
commit df2bf3cb63
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package proc
import "encoding/binary"
// Takes an offset from RSP and returns the address of the
// instruction the currect function is going to return to.
// instruction the current function is going to return to.
func (thread *Thread) ReturnAddress() (uint64, error) {
locations, err := thread.Stacktrace(2)
if err != nil {

View File

@ -81,7 +81,7 @@ func (c *Commands) Register(cmdstr string, cf cmdfunc, helpMsg string) {
}
// Find will look up the command function for the given command input.
// If it cannot find the command it will defualt to noCmdAvailable().
// If it cannot find the command it will default to noCmdAvailable().
// If the command is an empty string it will replay the last command.
func (c *Commands) Find(cmdstr string) cmdfunc {
// If <enter> use last command, if there was one.