Skip to content

Commit

Permalink
README.md: fix err check in example
Browse files Browse the repository at this point in the history
Fixes #3

Reported-by: @tomparkin
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser committed Mar 19, 2020
1 parent 4f5f1f2 commit 9251390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
func main() {
// get clock ticks, this will return the same as C.sysconf(C._SC_CLK_TCK)
clktck, err := sysconf.Sysconf(sysconf.SC_CLK_TCK)
if err != nil {
if err == nil {
fmt.Printf("SC_CLK_TCK: %v\n", clktck)
}
}
Expand Down

0 comments on commit 9251390

Please sign in to comment.