aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-17 11:34:52 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-17 11:34:52 +0000
commit5e084529937f65c93489e80d38373bbc6b5843b1 (patch)
tree845716c020fbaa14d407d3f903dfd2a6e482280f /array.c
parentf2ee4c7eb025b4b79f6ca8f83bafb21695384b7f (diff)
downloadruby-5e084529937f65c93489e80d38373bbc6b5843b1.tar.gz
* array.c (rb_ary_sum): [DOC] fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index f0a212de08..9f94a6d8dc 100644
--- a/array.c
+++ b/array.c
@@ -5659,7 +5659,7 @@ rb_ary_dig(int argc, VALUE *argv, VALUE self)
* For example, [e1, e2, e3].sum returns init + e1 + e2 + e3.
*
* If a block is given, the block is applied to each element
- * before addtion.
+ * before addition.
*
* If <i>ary</i> is empty, it returns <i>init</i>.
*
@@ -5670,7 +5670,7 @@ rb_ary_dig(int argc, VALUE *argv, VALUE self)
* [2.5, 3.0].sum(0.0) {|e| e * e } #=> 15.25
* [Object.new].sum #=> TypeError
*
- * The (arithmetic) mean value of an array can be obtained* as follows.
+ * The (arithmetic) mean value of an array can be obtained as follows.
*
* mean = ary.sum(0.0) / ary.length
*