docs: Remove elipses from examples instead of commenting them out
This causes bugs since comments aren't nestable
This commit is contained in:
parent
2d11a04e74
commit
6473cf1757
@ -50,7 +50,7 @@ while cur < len(lines):
|
||||
# Lines beginning with '# ' are turned into valid code
|
||||
line = re.sub("^# ", "", line)
|
||||
# Allow elipses in code snippets
|
||||
line = re.sub("\.\.\.", "/*...*/", line)
|
||||
line = re.sub("\.\.\.", "", line)
|
||||
block += line
|
||||
if not ignore:
|
||||
if not re.search(r"\bfn main\b", block):
|
||||
|
Loading…
x
Reference in New Issue
Block a user