From 2ef823580dc0d795b153caa126cdc30a4efbff46 Mon Sep 17 00:00:00 2001 From: Ugric Date: Mon, 19 Jun 2023 23:59:41 +0100 Subject: [PATCH] change any key to enter --- src/input.go | 2 +- tests/diff.ar | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/input.go b/src/input.go index 612e9b1..3d336e1 100644 --- a/src/input.go +++ b/src/input.go @@ -60,7 +60,7 @@ func getPassword(args ...any) (string, error) { } func pause() { - fmt.Print("Press any key to continue...") + fmt.Print("Press Enter to continue...") term.ReadPassword(int(os.Stdin.Fd())) fmt.Println() } diff --git a/tests/diff.ar b/tests/diff.ar index 4492f49..67dea2d 100644 --- a/tests/diff.ar +++ b/tests/diff.ar @@ -2,8 +2,7 @@ let zero = 1e-1000 let diff(f) = (x) = (f(x + zero) - f(x)) / zero -let f(x) = do - return x^10+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1 +let f(x) = x^10+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1 let x = 100 let d = 0