Skip to content

Commit 73645f0

Browse files
author
José Valim
committed
Merge pull request #1513 from ericmj/enum-at-docs
Fix Enum.at docs
2 parents e6b075f + 26efdaf commit 73645f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/elixir/lib/enum.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ defmodule Enum do
195195

196196
@doc """
197197
Finds the element at the given index (zero-based).
198-
Raises out of bounds error in case the given position
199-
is outside the range of the collection.
198+
Returns `default` if index is out of bounds.
200199
201200
Expects an ordered collection.
202201

0 commit comments

Comments
 (0)