diff options
Diffstat (limited to 'lib/rexml/functions.rb')
-rw-r--r-- | lib/rexml/functions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/functions.rb b/lib/rexml/functions.rb index 20c8961aee..2010be14e0 100644 --- a/lib/rexml/functions.rb +++ b/lib/rexml/functions.rb @@ -363,7 +363,7 @@ module REXML def Functions::sum( nodes ) nodes = [nodes] unless nodes.kind_of? Array - nodes.inject(0) { |r,n| r += number(string(n)) } + nodes.inject(0) { |r,n| r + number(string(n)) } end def Functions::floor( number ) |