We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a2e58 commit 50e107fCopy full SHA for 50e107f
Doc/library/functools.rst
@@ -180,8 +180,8 @@ The :mod:`functools` module defines the following functions:
180
the *maxsize* at its default value of 128::
181
182
@lru_cache
183
- def count_vowels(sentence):
184
- return sum(sentence.count(vowel) for vowel in 'AEIOUaeiou')
+ def count_vowels(word):
+ return sum(word.count(vowel) for vowel in 'AEIOUaeiou')
185
186
If *maxsize* is set to ``None``, the LRU feature is disabled and the cache can
187
grow without bound.
0 commit comments