Fix typos

This commit is contained in:
ines 2017-11-09 04:13:03 +01:00
parent e87eb11beb
commit 98767122a7
2 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ p
infixes = find_infixes(substring)
offset = 0
for match in infixes:
tokens.append(substring[i : match.start()])
tokens.append(substring[offset : match.start()])
tokens.append(substring[match.start() : match.end()])
offset = match.end()
substring = substring[offset:]
@ -140,7 +140,7 @@ p
tokens.append(substring)
substring = ''
tokens.extend(reversed(suffixes))
return tokens
return tokens
p
| The algorithm can be summarized as follows:

View File

@ -190,7 +190,7 @@ p
+infobox("How the ._ is implemented")
| Extension definitions the defaults, methods, getters and setters you
| pass in to #[code set_extension] are stored in class attributes on the
| pass in to #[code set_extension] are stored in class attributes on the
| #[code Underscore] class. If you write to an extension attribute, e.g.
| #[code doc._.hello = True], the data is stored within the
| #[+api("doc#attributes") #[code Doc.user_data]] dictionary. To keep the