Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemole committed Sep 25, 2024
1 parent 224b618 commit 81582f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@ def get_segment_by_full_name(self, name: str) -> Optional[Segment]:
# Get rid of the first part for the search.
name = split_segment_name[1:]

return self._get_segment_by_full_name(name)
return self._get_segment_by_relative_name(name)

def _get_segment_by_full_name(self, name: str) -> Optional[Segment]:
def _get_segment_by_relative_name(self, name: str) -> Segment:
"""
:param name: The name of the segment to be searched for, relative to the current corpus.
:return: The segment whose name coincides with :param:`name` relative to the current corpus,
Expand Down

0 comments on commit 81582f4

Please sign in to comment.