aboutsummaryrefslogtreecommitdiff
path: root/cmd/myshell
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/myshell')
-rw-r--r--cmd/myshell/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/myshell/main.go b/cmd/myshell/main.go
index cebcdd0..fdf0f6d 100644
--- a/cmd/myshell/main.go
+++ b/cmd/myshell/main.go
@@ -13,8 +13,8 @@ func main() {
// Wait for user input
in, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil {
- fmt.Fprintf(err.Error())
+ fmt.Println(err.Error())
}
- fml.Fprintf("%s: command not found\n", strings.TrimRight(in, "\n"))
+ fml.Printf("%s: command not found\n", strings.TrimRight(in, "\n"))
}