Skip to content

Commit b347d5e

Browse files
committed
Puts comments into the code chunk
1 parent e7d26b1 commit b347d5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/Language/traps.pod6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ inside the loop gets initialized anew each time the sub is called:
110110
count-it;
111111
say "…and again…";
112112
count-it;
113-
=end code
113+
114114
115115
# OUTPUT:
116116
# Count is 0
@@ -120,7 +120,8 @@ inside the loop gets initialized anew each time the sub is called:
120120
# Count is 0
121121
# Count is 1
122122
# Count is 2
123-
123+
=end code
124+
124125
The same layout exists in our buggy program. The C<{ }> inside a double-quoted
125126
string isn't merely an interpolation to execute a piece of code. It's actually
126127
its own block, which is just as in the example above gets cloned each time the

0 commit comments

Comments
 (0)