Commit e3b0e89f authored by Jacob Vosmaer's avatar Jacob Vosmaer

small things

parent ad72649b
......@@ -14,7 +14,7 @@ const (
func main() {
if len(os.Args) != 2 {
log.Fatalf("usage: %s [FILE]", progName)
log.Fatalf("usage: %s FILE", progName)
}
f, err := os.Open(os.Args[1])
......@@ -47,7 +47,8 @@ func main() {
}
for i := 0; i < 32; i++ {
fmt.Printf(" %q\n", data[i*128+118:(i+1)*128])
v := data[i*128 : (i+1)*128]
fmt.Printf(" %s\n", v[118:128])
}
}
}
......
......@@ -16,7 +16,7 @@ const (
func main() {
if len(os.Args) != 2 {
log.Fatalf("usage: %s [FILE]", progName)
log.Fatalf("usage: %s FILE", progName)
}
f, err := os.Open(os.Args[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment