From 5e59867578f01fdaa5a62558cf23935b95e807ad Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 22 Jan 2024 17:19:33 -0500 Subject: rename angle mode constants --- calc.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'calc.go') diff --git a/calc.go b/calc.go index 1edfc9e..689243c 100644 --- a/calc.go +++ b/calc.go @@ -5,21 +5,21 @@ import "strconv" type AngleMode bool const ( - modeDeg = false - modeRad = true + degrees AngleMode = false + radians AngleMode = true ) func (a AngleMode) String() string { - if a == modeDeg { + if a == degrees { return "deg" } return "rad" } type Calculator struct { - stack Stack - buf string - anglem AngleMode + stack Stack + buf string + angleMode AngleMode } // swap swaps the values of the buffer and the bottom element of the stack. If -- cgit v1.2.3