From a9eeca0d1400f13c3d57a75b33f9f3a82c8e1388 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Sat, 7 Mar 2020 15:57:22 +0100 Subject: [PATCH] doc: add interlinks between `break` and `continue` commands --- doc_src/cmds/break.rst | 6 ++++-- doc_src/cmds/continue.rst | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/doc_src/cmds/break.rst b/doc_src/cmds/break.rst index 7acfff689..d95f20805 100644 --- a/doc_src/cmds/break.rst +++ b/doc_src/cmds/break.rst @@ -23,8 +23,6 @@ Example ------- The following code searches all .c files for "smurf", and halts at the first occurrence. - - :: for i in *.c @@ -34,3 +32,7 @@ The following code searches all .c files for "smurf", and halts at the first occ end end +See Also +-------- + +- the :ref:`continue ` command, to skip the remainder of the current iteration of the current inner loop diff --git a/doc_src/cmds/continue.rst b/doc_src/cmds/continue.rst index f870edcec..532f6b866 100644 --- a/doc_src/cmds/continue.rst +++ b/doc_src/cmds/continue.rst @@ -20,8 +20,6 @@ Example The following code removes all tmp files that do not contain the word smurf. - - :: for i in *.tmp @@ -34,3 +32,7 @@ The following code removes all tmp files that do not contain the word smurf. echo $i end +See Also +-------- + +- the :ref:`break ` command, to stop the current inner loop