From 91fac6d1608dc74285538268fa4c73a69efa6e64 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 4 Dec 2023 13:44:19 +0100 Subject: [PATCH] added help comment --- command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command.go b/command.go index 9428251..f5bc48a 100644 --- a/command.go +++ b/command.go @@ -206,6 +206,9 @@ func (c *Calc) SetCommands() { } defer os.Remove(tmp.Name()) + tmp.WriteString("# add or remove numbers as you wish.\n") + tmp.WriteString("# each number must be on its own line.\n") + tmp.WriteString("# numbers must be floating point formatted.\n") for _, item := range c.stack.All() { fmt.Fprintf(tmp, "%f\n", item) }