about summary refs log tree commit diff
path: root/library/std/src/keyword_docs.rs
diff options
context:
space:
mode:
authorWilfred Hughes <wilfred@meta.com>2024-03-15 10:51:41 -0700
committerWilfred Hughes <wilfred@meta.com>2024-03-15 10:51:57 -0700
commite1e719e1a1916dee9365c390dcb640390433d078 (patch)
treedb2d312efd96e3cd7ece789ee79e83df71cbf99b /library/std/src/keyword_docs.rs
parentc5b571310dc60c6a58c6505cce2fb7e2f3f9aa68 (diff)
downloadrust-e1e719e1a1916dee9365c390dcb640390433d078.tar.gz
rust-e1e719e1a1916dee9365c390dcb640390433d078.zip
Mention labelled blocks in `break` docs
`break` doesn't require a loop, so note this in the docs.
This is covered in the linked sections of the rust reference,
but this page implied that `break` is only for loops.
Diffstat (limited to 'library/std/src/keyword_docs.rs')
-rw-r--r--library/std/src/keyword_docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs
index 873bfb6218b..8415f36eba2 100644
--- a/library/std/src/keyword_docs.rs
+++ b/library/std/src/keyword_docs.rs
@@ -48,7 +48,7 @@ mod as_keyword {}
 
 #[doc(keyword = "break")]
 //
-/// Exit early from a loop.
+/// Exit early from a loop or labelled block.
 ///
 /// When `break` is encountered, execution of the associated loop body is
 /// immediately terminated.