summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-11-21 15:47:40 +0900
committerdearblue <[email protected]>2020-11-21 15:47:59 +0900
commit3ac6c3f090dffee28991eba3346db380e2f69333 (patch)
tree716c25c8bf95320045e52be31401f4175dd87bd3
parenteb52c29b2d85e2eaac7896c70245f8da5bbaf5e2 (diff)
downloadmruby-3ac6c3f090dffee28991eba3346db380e2f69333.tar.gz
mruby-3ac6c3f090dffee28991eba3346db380e2f69333.zip
Fix documents for `mrb_ary_splice()` [ci skip]
-rw-r--r--include/mruby/array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby/array.h b/include/mruby/array.h
index 5164efa69..34011d537 100644
--- a/include/mruby/array.h
+++ b/include/mruby/array.h
@@ -249,10 +249,10 @@ MRB_API mrb_value mrb_ary_entry(mrb_value ary, mrb_int offset);
*
* Equivalent to:
*
- * ary.shift
+ * ary[head, len] = rpl
*
* @param mrb The mruby state reference.
- * @param self The array from which the value will be shifted.
+ * @param self The array from which the value will be partiality replaced.
* @param head Beginning position of a replacement subsequence.
* @param len Length of a replacement subsequence.
* @param rpl The array of replacement elements.