Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saviorand committed Feb 22, 2025
1 parent c7e9f05 commit 05d5b14
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lightbug_http/io/bytes.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,11 @@ struct ByteView[origin: Origin](Testable):
return False

fn __contains__(self, b: Bytes) -> Bool:
# If the search pattern is longer than the text, it can't be contained
if len(b) > len(self._inner):
return False

# For each possible starting position in self._inner
for i in range(len(self._inner) - len(b) + 1):
var found = True
# Check if the pattern matches starting at position i
for j in range(len(b)):
if self._inner[i + j] != b[j]:
found = False
Expand Down

0 comments on commit 05d5b14

Please sign in to comment.