kern/fraction-type.go: changed some syntax
This commit is contained in:
@@ -44,10 +44,11 @@ func MakeGeneratingFraction(s string) (f *FractionType, err error) {
|
|||||||
if len(s) == 0 {
|
if len(s) == 0 {
|
||||||
goto exit
|
goto exit
|
||||||
}
|
}
|
||||||
if s[0] == '-' {
|
switch s[0] {
|
||||||
|
case '-':
|
||||||
sign = int64(-1)
|
sign = int64(-1)
|
||||||
s = s[1:]
|
s = s[1:]
|
||||||
} else if s[0] == '+' {
|
case '+':
|
||||||
s = s[1:]
|
s = s[1:]
|
||||||
}
|
}
|
||||||
// if strings.HasSuffix(s, "()") {
|
// if strings.HasSuffix(s, "()") {
|
||||||
|
|||||||
Reference in New Issue
Block a user