Skip to content

Commit

Permalink
deploy: c46996a
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed Oct 21, 2024
1 parent b369c98 commit 84dfccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reference/control-flow/labeled-control-flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h2 id="labeled-blocks"><a class="header" href="#labeled-blocks">Labeled Blocks<
<h2 id="restrictions"><a class="header" href="#restrictions">Restrictions</a></h2>
<p>To clarify program behavior, you may only use <code>break</code> and <code>continue</code> with loop labels, while
<code>return</code> will only work with block labels. To this end, the following programs produce errors:</p>
<pre><code>fun bad_loop() {
<pre><code class="language-move">fun bad_loop() {
'name: loop {
return 'name 5
// ^^^^^ Invalid usage of 'return' with a loop block label
Expand Down
2 changes: 1 addition & 1 deletion reference/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ <h2 id="labeled-blocks"><a class="header" href="#labeled-blocks">Labeled Blocks<
<h2 id="restrictions-1"><a class="header" href="#restrictions-1">Restrictions</a></h2>
<p>To clarify program behavior, you may only use <code>break</code> and <code>continue</code> with loop labels, while
<code>return</code> will only work with block labels. To this end, the following programs produce errors:</p>
<pre><code>fun bad_loop() {
<pre><code class="language-move">fun bad_loop() {
'name: loop {
return 'name 5
// ^^^^^ Invalid usage of 'return' with a loop block label
Expand Down

0 comments on commit 84dfccb

Please sign in to comment.