summary refs log tree commit diff
path: root/src/libstd/keyword_docs.rs
diff options
context:
space:
mode:
authorBart Massey <bart.massey@gmail.com>2019-11-12 03:19:40 -0800
committerBart Massey <bart.massey@gmail.com>2019-11-15 16:31:30 -0800
commited56f867818f7f3fb29dac3cfc0faf316909fd23 (patch)
treec1ccd241b3125d2b32b9f8d3ebf5aa6d4d12786e /src/libstd/keyword_docs.rs
parent1bd30ce2aac40c7698aa4a1b9520aa649ff2d1c5 (diff)
downloadrust-ed56f867818f7f3fb29dac3cfc0faf316909fd23.tar.gz
rust-ed56f867818f7f3fb29dac3cfc0faf316909fd23.zip
Cleaned up unused labels
Deleted unused labels from compiler and fixed or allowed
unused labels in tests. This patch removes some gratuitous
unused labels and turns off the warning for unused labels
that are a necessary part of tests.  This will permit
setting the `unused_labels` lint to `warn`.
Diffstat (limited to 'src/libstd/keyword_docs.rs')
-rw-r--r--src/libstd/keyword_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs
index d025a7d16f2..4b237c1d1b6 100644
--- a/src/libstd/keyword_docs.rs
+++ b/src/libstd/keyword_docs.rs
@@ -57,7 +57,7 @@ mod as_keyword { }
 /// 'outer: for i in 1..=5 {
 ///     println!("outer iteration (i): {}", i);
 ///
-///     'inner: for j in 1..=200 {
+///     '_inner: for j in 1..=200 {
 ///         println!("    inner iteration (j): {}", j);
 ///         if j >= 3 {
 ///             // breaks from inner loop, let's outer loop continue.
@@ -178,7 +178,7 @@ mod const_keyword { }
 ///```rust
 /// // Print Odd numbers under 30 with unit <= 5
 /// 'tens: for ten in 0..3 {
-///     'units: for unit in 0..=9 {
+///     '_units: for unit in 0..=9 {
 ///         if unit % 2 == 0 {
 ///             continue;
 ///         }