mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
fix - builtin
This commit is contained in:
parent
1b93fcd988
commit
5e410a733f
|
@ -397,7 +397,7 @@ func plus(ec *evalCtx, nums ...float64) exitus {
|
|||
|
||||
func minus(ec *evalCtx, sum float64, nums ...float64) exitus {
|
||||
out := ec.ports[1].ch
|
||||
for _, f := range nums[1:] {
|
||||
for _, f := range nums {
|
||||
sum -= f
|
||||
}
|
||||
out <- str(fmt.Sprintf("%g", sum))
|
||||
|
|
Loading…
Reference in New Issue
Block a user