Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeBalci committed Sep 2, 2020
1 parent a275aba commit a597034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/sgn.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (encoder Encoder) GetBasePointer() string {

}

// GetSafeRandomRegister returns a random register amoung all (registers-excluded parameters) based on given size
// GetSafeRandomRegister returns a random register among all (registers-excluded parameters) based on given size
func (encoder Encoder) GetSafeRandomRegister(size int, excludes ...string) string {

for {
Expand Down Expand Up @@ -197,7 +197,7 @@ func (encoder Encoder) GetSafeRandomRegister(size int, excludes ...string) strin
}

// Assemble assembes the given instructions
// and return a byte array with a boolean value indicating wether the operation is successfull or not
// and return a byte array with a boolean value indicating wether the operation is successful or not
func (encoder Encoder) Assemble(asm string) ([]byte, bool) {
var mode keystone.Mode
switch encoder.architecture {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func eror(err error) {
if ok && details != nil {
log.Fatalf("[%s] ERROR: %s\n", strings.ToUpper(strings.Split(details.Name(), ".")[1]), err)
} else {
log.Fatalf("[UNKOWN] ERROR: %s\n", err)
log.Fatalf("[UNKNOWN] ERROR: %s\n", err)
}
}
}
Expand Down

0 comments on commit a597034

Please sign in to comment.