1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix typo in Enumerable#slice_before

This commit is contained in:
Kouhei Yanagita 2022-10-18 12:19:02 +09:00 committed by Nobuyoshi Nakada
parent 18b96d8a82
commit f982a26374
Notes: git 2022-10-19 00:15:09 +00:00

2
enum.c
View file

@ -3834,7 +3834,7 @@ slicebefore_i(RB_BLOCK_CALL_FUNC_ARGLIST(yielder, enumerator))
/*
* call-seq:
* slice_before(pattern) -> enumerator
* slice_before {|array| ... } -> enumerator
* slice_before {|elt| ... } -> enumerator
*
* With argument +pattern+, returns an enumerator that uses the pattern
* to partition elements into arrays ("slices").