mirror of https://github.com/python/cpython.git
Fix typo in example regular expression.
This commit is contained in:
parent
35c87f2b8e
commit
8f5dbc83ea
|
@ -1299,7 +1299,7 @@ successive matches::
|
|||
|
||||
def tokenize(s):
|
||||
tok_spec = [
|
||||
('NUMBER', r'\d+(.\d+)?'), # Integer or decimal number
|
||||
('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number
|
||||
('ASSIGN', r':='), # Assignment operator
|
||||
('END', ';'), # Statement terminator
|
||||
('ID', r'[A-Za-z]+'), # Identifiers
|
||||
|
|
Loading…
Reference in New Issue