Skip to content

Commit 6473cf1

Browse files
committed
docs: Remove elipses from examples instead of commenting them out
This causes bugs since comments aren't nestable
1 parent 2d11a04 commit 6473cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/extract-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
# Lines beginning with '# ' are turned into valid code
5151
line = re.sub("^# ", "", line)
5252
# Allow elipses in code snippets
53-
line = re.sub("\.\.\.", "/*...*/", line)
53+
line = re.sub("\.\.\.", "", line)
5454
block += line
5555
if not ignore:
5656
if not re.search(r"\bfn main\b", block):

0 commit comments

Comments
 (0)