Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Contribution

All contributions and comments welcome! Open an issue or create a Pull Request whenever you find a bug or have an idea to imporve the library.
All contributions and comments welcome! Open an issue or create a Pull Request whenever you find a bug or have an idea to improve the library.
6 changes: 3 additions & 3 deletions internal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ func ParseHeader(header string) (routine Goroutine, err error) {
err = fmt.Errorf("expected goroutine header, but got: %s", header[0:10])
return
}
seperator := strings.Index(header[10:], " ")
separator := strings.Index(header[10:], " ")

id, parseErr := strconv.ParseInt(header[10:10+seperator], 10, 64)
id, parseErr := strconv.ParseInt(header[10:10+separator], 10, 64)
if parseErr != nil {
err = fmt.Errorf("could not parse ID. Err: %s", parseErr.Error())
return
}

// Remove []:
fullState := header[12+seperator : len(header)-2]
fullState := header[12+separator : len(header)-2]
firstComma := strings.Index(fullState, ",")
var status string
lockedToThread := false
Expand Down