aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-05-30 02:04:54 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-05-30 02:04:54 +0000
commitacd9e2ce8f2219ba031b017e0622122d545a1def (patch)
tree1e2d0a8ee1bd10ec95c8cea720682797d75352a8
parent962c7496ed455f534ffab7bf48306652fd2d14e7 (diff)
downloadshell-go-acd9e2ce8f2219ba031b017e0622122d545a1def.tar.gz
shell-go-acd9e2ce8f2219ba031b017e0622122d545a1def.zip
pass 2st stage
-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"))
}