提交 260d6d1f 编写于 作者: E epipho 提交者: Derek Parker

Syntax cleanup

上级 f43703f1
......@@ -285,7 +285,6 @@ func info(p *proctl.DebuggedProcess, args ...string) error {
data = append(data, f)
}
}
break
case "functions":
data = make([]string, 0, len(p.GoSymTable.Funcs))
......@@ -294,7 +293,6 @@ func info(p *proctl.DebuggedProcess, args ...string) error {
data = append(data, f.Name)
}
}
break
default:
return fmt.Errorf("unsupported info type, must be sources or functions")
......@@ -304,7 +302,7 @@ func info(p *proctl.DebuggedProcess, args ...string) error {
sort.Sort(sort.StringSlice(data))
for _, d := range data {
fmt.Printf("%s\n", d)
fmt.Println(d)
}
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册