Skip to content

Commit

Permalink
fix docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Alvydas Vitkauskas <[email protected]>
  • Loading branch information
avitkauskas committed Nov 9, 2024
1 parent 81a16eb commit be0f805
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions stdlib/src/collections/deque.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -636,17 +636,17 @@ struct Deque[ElementType: CollectionElement](
"""Returns the index of the first occurrence of a `value` in a deque
restricted by the range given the `start` and `stop` bounds.
Parameters:
EqualityElementType: The type of the elements in the deque.
Must implement the `EqualityComparableCollectionElement` trait.
Args:
value: The value to search for.
start: The starting index of the search, treated as a slice index
(defaults to 0).
stop: The ending index of the search, treated as a slice index
(defaults to None, which means the end of the deque).
Parameters:
EqualityElementType: The type of the elements in the deque.
Must implement the `EqualityComparableCollectionElement` trait.
Returns:
The index of the first occurrence of the value in the deque.
Expand Down Expand Up @@ -727,6 +727,10 @@ struct Deque[ElementType: CollectionElement](
) raises:
"""Removes the first occurrence of the `value`.
Parameters:
EqualityElementType: The type of the elements in the deque.
Must implement the `EqualityComparableCollectionElement` trait.
Args:
value: The value to remove.
Expand Down

0 comments on commit be0f805

Please sign in to comment.