Skip to content

Commit

Permalink
remove stringslice iter deprecation
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <[email protected]>
  • Loading branch information
martinvuyk committed Feb 1, 2025
1 parent 83665e1 commit b20fe4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion stdlib/src/collections/string/string.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,6 @@ struct String(
"""
self._iadd[False](other.as_bytes())

@deprecated("Use `str.chars()` or `str.char_slices()` instead.")
fn __iter__(self) -> _StringSliceIter[__origin_of(self)]:
"""Iterate over the string, returning immutable references.
Expand Down
1 change: 0 additions & 1 deletion stdlib/src/collections/string/string_slice.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ struct StringSlice[mut: Bool, //, origin: Origin[mut]](
self.unsafe_ptr(), rhs.unsafe_ptr(), min(len1, len2)
)

@deprecated("Use `str.chars()` or `str.char_slices()` instead.")
fn __iter__(self) -> _StringSliceIter[origin]:
"""Iterate over the string, returning immutable references.
Expand Down

0 comments on commit b20fe4f

Please sign in to comment.