From 2be02fac785272e3bcea2cef619954535dc9abe0 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 5 Sep 2018 12:18:26 +0200 Subject: Clean up _expand_name() comments Some grammar, some copy-paste errors ('string' should be 'name'). --- kconfiglib.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index 4dbb530..770614a 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2076,7 +2076,8 @@ class Kconfig(object): # Expands a symbol name starting at index 'i' in 's'. # # Returns the expanded name, the expanded 's' (including the part - # before the name), and the index of the next token after the name. + # before the name), and the index of the first character in the next + # token after the name. s, end_i = self._expand_name_iter(s, i) name = s[i:end_i] @@ -2095,8 +2096,8 @@ class Kconfig(object): def _expand_name_iter(self, s, i): # Expands a symbol name starting at index 'i' in 's'. # - # Returns the expanded 's' (including the part before the name), the - # index of the first character after the expanded string in 's'. + # Returns the expanded 's' (including the part before the name) and the + # index of the first character after the expanded name in 's'. while 1: match = _name_special_search(s, i) -- cgit v1.2.3