Skip to content

Commit 4e9e35e

Browse files
author
Bob "Wombat" Hogg
authored
docs(utils): Fix typos in nth function docstring (#1553)
1 parent 783e38a commit 4e9e35e

File tree

1 file changed

+2
-2
lines changed
  • packages/gapic-generator/gapic/utils

1 file changed

+2
-2
lines changed

packages/gapic-generator/gapic/utils/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def nth(iterable: Iterable[T], n: int, default: Optional[T] = None) -> Optional[
5858
5959
Args
6060
iterable (Iterable(T)): An iterable on any type.
61-
n (int): The 'index' of the lement to retrieve.
62-
default (Optional(T)): An optional default elemnt if the iterable has
61+
n (int): The 'index' of the element to retrieve.
62+
default (Optional(T)): An optional default element if the iterable has
6363
fewer than n elements.
6464
"""
6565
return next(itertools.islice(iterable, n, None), default)

0 commit comments

Comments
 (0)