mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Revert accidentally commited code when Fixing typo in README.
This reverts commit 98f02a01b5
.
This commit is contained in:
parent
98f02a01b5
commit
348306ceb4
|
@ -8,7 +8,6 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"os"
|
||||
"reflect"
|
||||
"runtime"
|
||||
|
@ -81,7 +80,6 @@ func init() {
|
|||
&BuiltinFn{"-", wrapFn(minus)},
|
||||
&BuiltinFn{"mul", wrapFn(times)},
|
||||
&BuiltinFn{"div", wrapFn(divide)},
|
||||
&BuiltinFn{"pow", wrapFn(pow)},
|
||||
&BuiltinFn{"lt", wrapFn(lt)},
|
||||
&BuiltinFn{"gt", wrapFn(gt)},
|
||||
|
||||
|
@ -494,11 +492,6 @@ func divide(ec *EvalCtx, prod float64, nums ...float64) {
|
|||
out <- String(fmt.Sprintf("%g", prod))
|
||||
}
|
||||
|
||||
func pow(ec *EvalCtx, b, p float64) {
|
||||
out := ec.ports[1].Chan
|
||||
out <- String(fmt.Sprintf("%g", math.Pow(b, p)))
|
||||
}
|
||||
|
||||
var ErrFalse = errors.New("false")
|
||||
|
||||
func lt(ec *EvalCtx, nums ...float64) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user