From 5253b9579a129f66a768dae24bd50a95bab02841 Mon Sep 17 00:00:00 2001 From: Victor Shepelev Date: Mon, 21 Dec 2020 02:32:30 +0200 Subject: Document usage of ArithmeticSequence in Array#slice, and add to NEWS (#3952) --- enumerator.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'enumerator.c') 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 -- cgit v1.2.1