summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-09-05 12:18:26 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-09-05 12:19:39 +0200
commit2be02fac785272e3bcea2cef619954535dc9abe0 (patch)
treec21b194476d0f8d3492c4cc1b2a97989ef3d4ad8
parent0591946c28107001f4c5ca725405b8c2270be0dd (diff)
Clean up _expand_name() comments
Some grammar, some copy-paste errors ('string' should be 'name').
-rw-r--r--kconfiglib.py7
1 files 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)