Skip to content

Commit

Permalink
docs(utils): Fix typos in nth function docstring (#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhogg authored Jan 5, 2023
1 parent 946797c commit e4be9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gapic/utils/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def nth(iterable: Iterable[T], n: int, default: Optional[T] = None) -> Optional[
Args
iterable (Iterable(T)): An iterable on any type.
n (int): The 'index' of the lement to retrieve.
default (Optional(T)): An optional default elemnt if the iterable has
n (int): The 'index' of the element to retrieve.
default (Optional(T)): An optional default element if the iterable has
fewer than n elements.
"""
return next(itertools.islice(iterable, n, None), default)

0 comments on commit e4be9ae

Please sign in to comment.