Skip to content

Commit cf49f8b

Browse files
authored
Clarify example comment in Enum.slide/3 (#13779)
1 parent 5b74253 commit cf49f8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/enum.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -2706,11 +2706,11 @@ defmodule Enum do
27062706
iex> Enum.slide([:a, :b, :c, :d, :e, :f, :g], 5, 1)
27072707
[:a, :f, :b, :c, :d, :e, :g]
27082708
2709-
# Slide a range of elements backward
2709+
# Slide a range of elements towards the head of the list
27102710
iex> Enum.slide([:a, :b, :c, :d, :e, :f, :g], 3..5, 1)
27112711
[:a, :d, :e, :f, :b, :c, :g]
27122712
2713-
# Slide a range of elements forward
2713+
# Slide a range of elements towards the tail of the list
27142714
iex> Enum.slide([:a, :b, :c, :d, :e, :f, :g], 1..3, 5)
27152715
[:a, :e, :f, :b, :c, :d, :g]
27162716

0 commit comments

Comments
 (0)