From d82abf33605120a27bdd0648b7e797ce5927462c Mon Sep 17 00:00:00 2001 From: kasperloopstra Date: Fri, 17 Apr 2020 15:45:38 +0200 Subject: [PATCH] Added missing colon in for expression in example --- source/PvL_05.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/PvL_05.rst b/source/PvL_05.rst index 0cfbe1f..376b8c7 100644 --- a/source/PvL_05.rst +++ b/source/PvL_05.rst @@ -538,7 +538,7 @@ starting position in the search string: :linenos: def find2(haystack, needle, start): - for index,letter in enumerate(haystack[start:]) + for index,letter in enumerate(haystack[start:]): if letter == needle: return index + start return -1