aboutsummaryrefslogtreecommitdiffstats
path: root/calc.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-01-22 17:19:33 -0500
committerSam Anthony <sam@samanthony.xyz>2024-01-22 17:19:33 -0500
commit5e59867578f01fdaa5a62558cf23935b95e807ad (patch)
treea88c243d14731d569d7426fb62be41b3346aae93 /calc.go
parent4f9e220638ea62443db25d252c4e12ede2c7f9c5 (diff)
downloadpfc-5e59867578f01fdaa5a62558cf23935b95e807ad.zip
rename angle mode constants
Diffstat (limited to 'calc.go')
-rw-r--r--calc.go12
1 files changed, 6 insertions, 6 deletions
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