summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-21 16:08:44 +0900
committerGitHub <[email protected]>2020-11-21 16:08:44 +0900
commit55e127577863e0f913a4b7b8653fcba577c29b86 (patch)
tree0845d71b8b010f1aba059646fde5f328dfd4659c /include
parentc6c18c32b061960ca706e40594b3d32046d0ab8f (diff)
parent3ac6c3f090dffee28991eba3346db380e2f69333 (diff)
downloadmruby-55e127577863e0f913a4b7b8653fcba577c29b86.tar.gz
mruby-55e127577863e0f913a4b7b8653fcba577c29b86.zip
Merge pull request #5161 from dearblue/ary-splice
Fix documents for `mrb_ary_splice()` [ci skip]
Diffstat (limited to 'include')
-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.