kern/fraction-type.go: changed some syntax

This commit is contained in:
2026-05-13 08:01:18 +02:00
parent 0f293fdbbc
commit 3a4e217891
+3 -2
View File
@@ -44,10 +44,11 @@ func MakeGeneratingFraction(s string) (f *FractionType, err error) {
if len(s) == 0 {
goto exit
}
if s[0] == '-' {
switch s[0] {
case '-':
sign = int64(-1)
s = s[1:]
} else if s[0] == '+' {
case '+':
s = s[1:]
}
// if strings.HasSuffix(s, "()") {