Skip to content

Commit b0b065e

Browse files
authored
making Trap section more prominent per issue 3908 (#4726)
1 parent a10573f commit b0b065e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/Language/REPL.rakudoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ The C<REPL> is an interactive Raku prompt. Each line of code you enter in the C<
1010
is executed, and if no output was generated, the value returned
1111
by the expression is output.
1212

13+
=head1 Trap
14+
15+
B<Note>: Running code in the C<REPL> is not equivalent to saving the code in a file and
16+
running that. Each line introduces a new scope which can confuse code that has multiple
17+
lines. See C<sub repl()> below for a way to target a REPL inside a larger script.
18+
1319
=head1 Previous Values
1420

1521
As you enter commands into the REPL, each line has a numeric ID associated with it, starting
@@ -33,12 +39,6 @@ To exit type 'exit' or '^D'
3339
[3] >
3440
=end code
3541

36-
=head1 Trap
37-
38-
B<Note>: Running code in the C<REPL> is not equivalent to saving the code in a file and
39-
running that. Each line introduces a new scope which can confuse code that has multiple
40-
lines. See C<sub repl()> below for a way to target a REPL inside a larger script.
41-
4242
=head1 non-interactive mode
4343

4444
If invoked from the command line with C<raku --repl-mode=non-interactive>, no history or prompts

0 commit comments

Comments
 (0)