From 6efa2eca0b93260fea7661e590a3be4d1b8c6752 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 28 Sep 2023 09:50:53 +0900 Subject: [PATCH] Fix typo in Backtranslation_of_SQL_queries.py (#709) --- examples/Backtranslation_of_SQL_queries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Backtranslation_of_SQL_queries.py b/examples/Backtranslation_of_SQL_queries.py index 8289a73..5496e8c 100644 --- a/examples/Backtranslation_of_SQL_queries.py +++ b/examples/Backtranslation_of_SQL_queries.py @@ -41,11 +41,11 @@ def get_candidates( def rindex(lst: List, value: str) -> int: """ - Return the index of the last occurence of a value in a list. + Return the index of the last occurrence of a value in a list. :param lst: The list to search in. :param value: The value to search for. - :return: The index of the last occurence of the value. + :return: The index of the last occurrence of the value. """ try: return len(lst) - lst[::-1].index(value) - 1