aboutsummaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authorVictor Shepelev <zverok.offline@gmail.com>2020-12-21 02:32:30 +0200
committerGitHub <noreply@github.com>2020-12-21 09:32:30 +0900
commit5253b9579a129f66a768dae24bd50a95bab02841 (patch)
tree289b20b4430e3368a9047a94f2e829679b013c02 /enumerator.c
parent6be61ab264c98c96e26b5d3398cf80b49197ba29 (diff)
downloadruby-5253b9579a129f66a768dae24bd50a95bab02841.tar.gz
Document usage of ArithmeticSequence in Array#slice, and add to NEWS (#3952)
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/enumerator.c b/enumerator.c
index 68cfc2bcf7..fe5f054c74 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -3333,6 +3333,9 @@ enumerator_plus(VALUE obj, VALUE eobj)
* that is a representation of sequences of numbers with common difference.
* Instances of this class can be generated by the Range#step and Numeric#step
* methods.
+ *
+ * The class can be used for slicing Array (see Array#slice) or custom
+ * collections.
*/
VALUE