docs: Remove elipses from examples instead of commenting them out

This causes bugs since comments aren't nestable
This commit is contained in:
Brian Anderson 2012-09-18 11:54:22 -07:00
parent 2d11a04e74
commit 6473cf1757

View File

@ -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):