Skip to content

Commit

Permalink
fix(strings): solved BUG035
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioMarceddu committed Dec 13, 2023
1 parent 7fcacee commit 7f78b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/BUG/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def substring_after(s: str, sub: str) -> str:
"""
BUG035: substring_after should return the substring after the first occurrence of sub, not before it.
"""
result = s.split(sub)[0]
result = s.split(sub)[1]
return result


Expand Down

0 comments on commit 7f78b41

Please sign in to comment.