diff --git a/stdlib/src/collections/deque.mojo b/stdlib/src/collections/deque.mojo index 8be4b34f8f6..1b3b35bce03 100644 --- a/stdlib/src/collections/deque.mojo +++ b/stdlib/src/collections/deque.mojo @@ -636,6 +636,10 @@ 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 @@ -643,10 +647,6 @@ struct Deque[ElementType: CollectionElement]( 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. @@ -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.